Hello Dear johnwasser,
Thank you very much for the reply.
I was try again today with you're tip, i copy the file pins_arduino.h in Core folder and i was try to compile the bellow code:
#include <Arduino.h>
//#include <pins_arduino.h>
int power;
float sensor=0;
float input=0;//voltage read on pin 2
float celsius=0;
float fahrenheit=0;
void setup(){
Serial.begin(9600);
pinMode(3,INPUT);
}
void loop(){
power= digitalRead(3);
if (power==HIGH){
sensor = analogRead(A0);
input = (sensor*5000)/1024; // convert raw sensor value to millivolts
celsius = input/10; // convert millivolts to Celsius
fahrenheit = ((celsius * 1.8)+32); // convert celsius to fahrenheit
Serial.println(" sensor read");
Serial.println(sensor);
Serial.println(" --------------------------");
delay(1000);
Serial.print("Temperature: ");
Serial.print(celsius,2);
Serial.println(" degrees C");
Serial.print("Temperature: ");
Serial.print(fahrenheit,2);
Serial.println(" degrees F");
Serial.println("_ _ _ _ _ _ _ _ _ _ _ _ _ _ ");
delay (2000); // wait a second, otherwise the serial monitor box will be too difficult to read
}
}
Without luck ![]()
The only good it was the errors it is only 3 from many it was before ![]()
Look the error if you can please, maybe you can understend more than me. ( I am sure for this
)
