Devices & Components
Arduino Uno Rev3
Touch Sensor
Male/Female Jumper Wires
Project description
Code
TouchSensor.ino
arduino
Upload this code:
1void setup() { 2 pinMode(2, INPUT); 3 Serial.begin(9600); 4 5} 6 7void loop() { 8 if (digitalRead(2) == HIGH); 9 Serial.println("Sensor is touched"); 10 delay(500); 11 12}
Downloadable files
Schematics
Schematics
Schematics
Schematics
Schematics
Schematics
Schematics
Schematics
Comments
Only logged in users can leave comments