Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Sensor1 = A0;
- int val1;
- void setup(){
- Serial.begin(9600);
- pinMode(Sensor1, INPUT);
- }
- void loop(){
- val1 = analogRead(Sensor1);
- Serial.println(val1); // <---- This value is going to be received by the Bluetooth application
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement