At the time the singer tutorial, we will MAKE views From The sensor we connect WITH Arduino, display to be shown is Exodus From The temperature of a place.
Anything That we prepare.
- Processing software
- Arduino software
- Arduino uno
- breadboard
- jumper
- DHT11
Schematic of DHT11 Temperature Sensor are as follows:
|
Schematic of DHT11
|
Coding:
// Free Tutorial Arduino
// www.ioisalman.com
#include
#define dht_apin A0 // Output from DHT11 entrance to A0 Arduino
dht DHT;
void setup(){
Serial.begin(9600);
delay(500);//Delay on system boot
Serial.println("");
delay(1000);//Time to wait before access to the Sensor
}//end “setup()”
void loop(){
//Start of Program
DHT.read11(dht_apin);
//Serial.print("Current humidity = ");
//Serial.print(DHT.humidity);
//Serial.print("% ");
//Serial.print(" ");
Serial.print(DHT.temperature);
Serial.println(" C ");
delay(5000);//Wait 5 Seconds before access to the sensor.
}// end loop()
0 Response to "Temperature Sensor featuring DHT11 in Processing Arduino"
Post a Comment