embedded project (copy) — ESP32 simulation

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by manyanaik1713.

Components

Sketch code

#define PH_PIN 34
#define TDS_PIN 35
#define TURBIDITY_PIN 32

void setup()
{
  Serial.begin(9600);

  pinMode(PH_PIN, INPUT);
  pinMode(TDS_PIN, INPUT);
  pinMode(TURBIDITY_PIN, INPUT);
}

void loop()
{
  int ph = analogRead(PH_PIN);
  int tds = analogRead(TDS_PIN);
  int turb = analogRead(TURBIDITY_PIN);

  Serial.print("PH=");
  Serial.print(ph);

  Serial.print("   TDS=");
  Serial.print(tds);

  Serial.print("   TURB=");
  Serial.println(turb);

  delay(500);
}

More projects by manyanaik1713