Advertisement
Guest User

gaz_senser

a guest
Nov 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  void setup() {
  4.   // initialize serial communication at 9600 bits per second:
  5.   Serial.begin(9600);
  6. }
  7.  
  8. // the loop routine runs over and over again forever:
  9. void loop() {
  10.   // read the input on analog pin 0:
  11.  
  12.   int sensorValue = analogRead(A0);
  13.   // print out the value you read:
  14.  
  15.   Serial.print("sa valeur est de:");
  16.   Serial.println(sensorValue);
  17.   delay(500);        // delay in between reads for stability
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement