In this project, we will use TMP36/2N3904 sensor to test environment temperature.
Step 1 - connect Temperature sensor with Arduino.
Connect sensor VCC pin to Arduino 5V port, GND pin to Arduino GND port and VOUT pin to Arduino A5 port.
see following graph:
Step 2 - Download tempsensor.ino sketch and load it into Arduino.
open the serial monitor window in Arduino IDE upright corner, you will see temperatures as following pictures: