Temperature/Humidity Sensor (no LED)

     Hey guys! Elda here, catching up with the group's progress from last week. I worked on the basics of how to set up an arduino, how to use LED's and manipulate their blinking, how to connect and write the code of Servo Motors as well as Stepper Motors. Today, I'm working on the Temperature and Humidity Sensor with Ramya.
     The sensor we are working with is a 3 pin DHT11 sensor, a rather simple one that measures humidity by measuring the electrical resistance between 2 electrodes and measures temperature with a surface mounted thermistor. To connect it to the board, we attach wires from the power, ground and pin to the bread board one after the other. We attach the DHT11 sensor right above them. Rather simple.
     For the code, I first downloaded the dht library, available online. Then, I took note of and understood the code to display the humidity and temperature readings of the environment every second. There was a problem displaying it though. Every other reading would be "-999.00", which doesn't make sense. My gut told me to increase the time to 3 seconds, and then the serial monitor started accurately displaying the temperature as 24 and humidity 57 as seen below. Yay.

     Ramya also thought of bringing a steamer to see if the humidity sensor works, and surely, it does. It rose from 56 to 68 in a matter of seconds.



Comments

Popular Posts