#define MQ_SENSOR_PIN 16 // Analog pin for MQ sensor
void setup() {
Serial.begin(115200);
}
void loop() {
int sensorValue = analogRead(MQ_SENSOR_PIN); // Read analog value
float voltage = sensorValue * (3.3 / 4095.0); // Convert to voltage
Serial.print("MQ Sensor Value: ");
Serial.print(sensorValue);
Serial.print(" | Voltage: ");
Serial.println(voltage);
delay(1000);
}