*ADC1_CH0(GPIO36)// only tested on this and it works as expected :)
*ADC1_CH1(GPIO37)
*ADC1_CH2(GPIO38)
*ADC1_CH3(GPIO39)
*ADC1_CH4(GPIO32)
*ADC1_CH5(GPIO33)
*ADC1_CH6(GPIO34)
*ADC1_CH7(GPIO35)
*
*ADC2GPIO
*ADC2_CH0(GPIO4)
*ADC2_CH1(GPIO0)
*ADC2_CH2(GPIO2)
*ADC2_CH3(GPIO15)
*ADC2_CH4(GPIO13)
*ADC2_CH5(GPIO12)
*ADC2_CH6(GPIO14)
*ADC2_CH7(GPIO27)
*ADC2_CH8(GPIO25)
*ADC2_CH9(GPIO26)
*
*/
#include<WiFi.h>
//Include the library
#include<MQUnifiedsensor.h>
/************************Hardware Related Macros************************************/
#define Board ("ESP-32") // Wemos ESP-32 or other board, whatever have ESP32 core.
//https://www.amazon.com/HiLetgo-ESP-WROOM-32-Development-Microcontroller-Integrated/dp/B0718T232Z (Although Amazon shows ESP-WROOM-32 ESP32 ESP-32S, the board is the ESP-WROOM-32D)
#define Pin (36) //check the esp32-wroom-32d.jpg image on ESP32 folder
/***********************Software Related Macros************************************/
#define Type ("MQ-2") //MQ2 or other MQ Sensor, if change this verify your a and b values.
if(isinf(calcR0)){Serial.println("Warning: Conection issue, R0 is infinite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue found, R0 is zero (Analog pin shorts to ground) please check your wiring and supply");while(1);}