I have a MCP9700 and it's really simple to get data out of it. Ground, +5V and connect the middle pin to an analog pin on the arduino. From there the simple sketch will display some values:
float temp = analogRead(0)*5/1024.0;
temp = temp - 0.5;
temp = temp / 0.01;
However this is giving me a temperature that is consistently high by 5-15 degrees. I'll even have two sensors next to each other on two separate arduinos and they both read very differently.
Can someone tell me the best way to either calibrate or connect the MCP9700 into my circuit? I've tried adding capacitors but that didn't quite get me visibly better results. Do I need a resistor? Do I need a shunt?