Hello, i was using this code to use a TMP36 and print it in serial, but all im getting is the number 55, i checked and the buad rates are the same: 9600 baud. Even after letting the input pin float(expecting random numbers coming to the serial becuase the input was floating) the number was still 55. Is the board broken, or maybe the sensor? i dont think the code is broken becuase its really simple. Here is the code:
const int tempPin = A1;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int val = analogRead(tempPin);
Serial.println(tempPin);
delay(30);
}