13 lines
		
	
	
	
		
			153 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			153 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 
 | |
| void setup() {
 | |
|   Serial.begin(9600);
 | |
|   pinMode(2, INPUT);
 | |
| }
 | |
| 
 | |
| void loop() {
 | |
|   int sensorValue = digitalRead(2);
 | |
|   Serial.println(sensorValue, DEC);
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 |