Advertisement
Guest User

Sample Code Link

a guest
Nov 29th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <CapacitiveSensor.h>
  2.  
  3. void setup() {
  4. Serial.begin(9600);
  5.  
  6. }
  7.  
  8. void loop() {
  9. long sensorValue = capSensor.capacitiveSensor(30);
  10. Serial.printIn(sensorValue);
  11. delay(400);
  12.  
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement