|
|
- #define in1 A0
-
- float temp1, lectura1;
-
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(9600);
- pinMode(in1, INPUT);
- }
-
- void loop() {
- // put your main code here, to run repeatedly:
- lectura1 = analogRead(in1);
- temp1 = (lectura1 * 5000 / 1023 / 10) - 40;
- Serial.print(temp1);
-
-
- delay(800);
- }
-
|