Reading Analog Values

Turn a voltage into a number with the analog-to-digital converter. Read a knob, a light sensor and a temperature sensor, and build a thermostat that does not chatter.