Since the output pin can give out a maximum of 5 volts (1024), 1024 represents the

How to Build a Touch Sensor Circuit which we will be able to read from the computer from the arduino serial monitor. The type B side of the connector goes into the arduino and the type A side into the USB port of the computer. And as we have set the reference voltage (voltage at Pin 2 of LM358) to 0.5 volt, so now voltage at Pin 3 (non-inverting input) becomes higher than voltage at Pin 2 (inverting input) and output of opamp LM358 (PIN 1) becomes HIGH. All we must do is write this code and upload it to the arduino to convert //main loop     PORTD &= ~1<