#include //added a library to use the Serial Monitor int rxPin = 0; //the receiving pin int txPin = 1; //the transmitting pin SoftwareSerial Serial(rxPin, txPin); int REED = 3; // my reed switch is pin 3 int REED_value = 0; //variable to read the reed pin void setup() { pinMode (REED, INPUT_PULLUP); // my reed is an input (pullup) Serial.begin(9600); // to enable communication, should correspond to serial monitor } void loop() { REED_value = digitalRead(REED); // read the value of the reed Serial.println(REED_value); }