1int ledPin =3;// Pin where the LED is hooked up2int inputPin =2;// Pin where teh Radar Sensor is hooked up3int motion =0;// State of motion456voidsetup(){7pinMode(ledPin,OUTPUT);// Declare the LED pin as output8pinMode(inputPin,INPUT);// Declare the sensor pin as input 9 Serial.begin(9600);10};111213voidloop(){14 motion =digitalRead(inputPin);// Read the input pin1516if(motion ==HIGH){17digitalWrite(ledPin,HIGH);// Turn on the LED18 Serial.println("Motion Detected!");19}else{20digitalWrite(ledPin,LOW);// Turn off the LED21 Serial.println("No Motion Detected!");22};23};