I have an Arduino MEGA reading temperature from LM35. The temperature value is fine and stable until I switch on a digital output. Once the output goes high, the temperature reading increases by 1 °C. Oce the output goes to 0, temperature reading decreases by 1 °C.
Any clues why this happens?