//I created this code during the group assignment. Henk provided us with this setup. #include // import another program, a library, to communicate #define rxPin 0 // this is simular to the int = setting, however this is linked to the library #define txPin 1 SoftwareSerial serial(rxPin, txPin); int pin_L_sensor = 2; int value_L_sensor = 0; void setup() { // put your setup code here, to run once: pinMode(rxPin, INPUT); pinMode(txPin, OUTPUT); pinMode(pin_L_sensor, INPUT); serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: value_L_sensor = analogRead(pin_L_sensor); serial.print("the status of the sensor is: "); serial.println(value_L_sensor); delay(1000); }