i been brought an tgs2603 sensor i following the data sheet of the sensor . i connection the AN2 to esp32 IO32 which was analog pin. 5V to the VCC and gnd to gnd of the esp32 board. During my coding
const int TELEGRAM_BUTTON_PIN =32;
int TELEGRAM_BUTTON_PINReading;
void setup() {
Serial.begin(115200);
// Initlaze the buttons
pinMode(TELEGRAM_BUTTON_PIN, INPUT);
}
void loop() {
TELEGRAM_BUTTON_PINReading = analogRead(32); // take a reading from the optical sensor pin
Serial.println(TELEGRAM_BUTTON_PINReading); // the analog reading of the optical sensor
delay(5);
}
the serial monitor keep printing 1623 value , by the way it should remaining 0. i have been testing this coding with other analog sensor it was working properly . Is i doing anything stupid ?