Define Echo 3
Define Echo 3
#define echo 4
Void setup() {
Serial.begin(9600);
pinMode(echo,INPUT);
pinMode(trig,OUTPUT);
Void loop() {
digitalWrite(trig,LOW);
delay(100);
digitalWrite(trig,HIGH);
delay(100);
digitalWrite(trig,LOW);
;Serial.print (“distanceincm: “)
>include <DFRobot_DHT11.h#
DFRobot_DHT11 DHT
define DHT11_PIN 2#
{ )(Void setup
;Serial.begin(9600)
{ )(Void loop
;DHT . read(DHT11_PIN)
; Serial . print (“temp: “)
} ; Delay (1000)
{ )(Void setup
{ )( Void loop
} ; Delay (100)
{ )( Void setup
{ )( Void loop
; digitalRead (5)