I am trying to use an Arduino Uno to read the ambient temperature of a room. Sounds simple i know, but when i connect the temp module to the analog input and map the output to the temperature range for the sensor, i get a result that is nowhere close to ambient temperature. I have attached the spec sheet for the sensor and the code I am using.
i have tried using code from the examples and still don’t get a decent result.I am sure i am missing something pretty basic, but any help would be greatly appreciated.
int sensorPin.pdf (180 KB)