WiFi/IR Sensor/UNO R3

Here, I am trying that when my IR sensor catches signal, It would us NodeMCU v3 to sent SMS/EMAIL/Telegram but I was unable to use NodeMCU with my Arduino.

int IRSensor = 9;
void setup() {
  pinMode(9, INPUT);
  Serial.begin(9600);

}

void loop() {
  int sensorStatus = digitalRead(IRSensor); // Set the GPIO as Input
  if (sensorStatus == 1) // Check if the pin high or not
  {
    Serial.println("Motion Detected!");
    delay(1000);
  }
  else  {
    Serial.println("Motion Ended!");
    delay(1000);
  }
}

Welcome to the forum

How are the two boards connected and what sketches are running on each board ?

1 Like

Yeah, will be sending it soon here.

http://arduino.esp8266.com/stable/package_esp8266com_index.json

I have been only able to connect IR and Arduino R3 not NodeMCU v3
My connection with IR are:-
Arduino-IR
D3-OUT
GND-GND
5V-VCC



Please tell the connection and code to link them

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.