Open main menu

Temperature sensor and LED circuit with Arduino

This circuit uses a temperature sensor to sense the ambient temperature of the room. This data is fed into an Arduino, which then pulses an LED in proportion to the current room temperature.

This temperature sensor (TMP36) is an integrated circuit chip that changes its output voltage in proportion to temperature changes. The chip outputs a range of voltages from 0.1V at -40°C, to 2.0V at 150°C. So, we can hook up its output directly to one of the Arduino's analog inputs, which expect to receive varying voltages as the incoming signal.


The circuit


The code



  1. We use a voltage divider circuit for potentiometers, force-sensitive resistors, and many other sensors. Why do we not need to use a voltage divider circuit with this temperature sensor?
  2. Unlike pressure sensed by force-sensitive resistors, or rotation sensed by potentiometers, ambient temperature sensed by temperature sensors almost always changes very gradually and slowly. How does this affect the design of interactions based on this sensor?
  3. Given the range of temperatures at which this sensor works, please give 2 ideas for applications of this sensor. Applications may involve anything from scientific research to artistic endeavors, but they should necessitate the use of this sensor, as opposed to other sensors.

What links here