Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. int Sensor1 = A0;
  2. int val1;
  3. void setup(){
  4.   Serial.begin(9600);
  5.   pinMode(Sensor1, INPUT);
  6. }
  7. void loop(){
  8.   val1 = analogRead(Sensor1);
  9.   Serial.println(val1);         //   <---- This value is going to be received by the Bluetooth application
  10.   delay(1000);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement