Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define sensorIR A0 // Pino de entrada do sensor
- int Leitura; // Variavem de leitura e calculo
- //------------------------------------------------
- void setup() {
- Serial.begin(9600); // Inicialisa a serial
- }
- //------------------------------------------------
- void loop() {
- Leitura = analogRead(sensorIR); // Leia o sensor e transforme em Volts
- Serial.println(Leitura);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement