Hi friends!
When I use Arduino analogRead function with or without something hooked up to the analog pin (A0), I can see there is a decay value when I power up or call the function after a little while after the last time. Can ambient temperature affect analog values ? If you try the analog read voltage example, after powering up the board, the value decreased by some millivolts until it seattles. If you shut it down the board and quickly power up the value doesn´t decay that much but if you wait like 20 seconds and power it up again you can see the decreasing effect again. Also this happends when you make a sample of the pin and the program does whatever it does and then you make another sample after a while. I need a precise value right after I call the function so when I read a sample I can inmediatly take different actions.
I hope I explain my doubt correctly. This is not a problem of code but more like a physic one.
I was thinking voltage reference for ADC takes a while to seattle due to resistance change by temperature.