Connect the motor to OUTPUT 1 and 2 (I1.A3 (A3) and I2.A2 (A2)). Connect the IR sensor to the INPUT 1 and 5 power supply (U1.A1 and U3.4). Connect the sensor power to OUTPUT 3 (I3.3).
When the left sensor has a signal, the WHEEL (motor) must start to rotate to one side, and when the right sensor has a signal, the WHEEL (motor) must start to rotate to the other side. When both sensors have a signal, WHEEL (motor) must stop.
Connect the RED lamp to OUTPUT 1 (I1.A3), and GREEN to OUTPUT 2 (I2.A2). Connect the PHOTOSENSOR to INPUT 1 (U1.A1).
When the photo sensor has a signal, the GREEN lamp should turn on for 0.2 seconds. If the photo sensor does not have a signal, the RED indicator light for 0.2 seconds should be on. Use ANALOGUE Input Sensor Values - INPUT 1.