Question: hello ... i write this code in arduino then i draw the UART IN PROTEUS... But no message showed on the virtual terminal ... how

 hello ... i write this code in arduino then i draw
the UART IN PROTEUS... But no message showed on the virtual terminal
... how this program work? how we can detect is theres a
stranger or no?? the idea js not clear because whenever i run

hello ... i write this code in arduino then i draw the UART IN PROTEUS... But no message showed on the virtual terminal ... how this program work? how we can detect is theres a stranger or no?? the idea js not clear because whenever i run the code... i cant see any msg and the led and buzzer are always OFF ! Be the code in C will . INTE del // . Screenshot (UART) with Buttons PSP cannot be und Weised buted in stores and taste #include void setup() { pinMode (5, INPUT);//config pinMode (7, OUTPUT);//confi pinMode (10, OUTPUT);//conf wire.begin(); } void loop() { if (digitalRead(5)==HIGH) { digitalWrite (7, HIGH); // digitalWrite (10, HIGH); Wine.write("AT+CMGE=1"); delay(1000); e. rie ("AT+CMGS=\"+S dela (1000); dee (MOTION DETE . 10 if (digitalRead (5)==HIGH) // check wether not { digitalWrite (7, HIGH); // if yes then LED in digitalWrite (10, HIGH); wire.write ("AT+CMGF=1");//To send SMS in Tex delay (1000); Wire.write ("AT+CMGS=\"+961123456\"r");//Give delay(1000); wire.write("MOTION DETECTED!"); // the conten delay(200); wire.write((char)26);//the stopping characte: delay (1000); } else //if motion not detected then buzzer and I { digitalWrite (7, LON); digitalWrite (10, LOW)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!