Here an example for using the MCP9808 sensor on a raspberry pi.
This is only a code snippet, as it only read's the temperature.
Not all the registers are implemented.
Negative values aren't yet tested.
This is a console application.