#include <Wire.h>
#include <Arduino.h>

#define PPM_PIN 4

void setup() {
  Wire.begin(23, 22);
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");
}

void loop() {
   // Value after from AD convertor
   int16_t ppmValue = analogRead(PPM_PIN);
   // Map the correct value ad AD convertor expects max votage to be 3.3 V and we are sending 5 V
   int mappedppmValue = (ppmValue/4.095);

   Serial.print("PPM: ");
  //  Print maapedTdsValue
   Serial.println(mappedppmValue);
   
   delay(100); 
}

mq135Breakout