Question: what is the mistake in my code??? im using arduino atmega 2560 to detect the motion and while im running my code no messages shown
void setup() { Serial.begin(9600); pinMode (5, INPUT); pinMode (7, OUTPUT); pinMode (10, OUTPUT); void loop() { if (digitalRead(5) ==HIGH) { digitalWrite (7, HIGH); digitalWhite (10, HIGH); mySerial.println("AT+CMGE=1"); delay (1000); mySerial.println("AT+CMGS=\"+961817762274 "R"); dele (1000); mySerial.an ("MOTION IS DETECTED"); mySerial ... (en) 26)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
