#include <ESP32Servo.h>;
//Salidas de aire por compuerta
const int S_aire1 = 23;
const int S_aire2 = 22;
const int S_aire3 = 21;
const int S_aire4 = 19;
const int S_aire5 = 18;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(S_aire1, OUTPUT);
pinMode(S_aire2, OUTPUT);
pinMode(S_aire3, OUTPUT);
pinMode(S_aire4, OUTPUT);
pinMode(S_aire5, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(S_aire1, HIGH);
digitalWrite(S_aire2, HIGH);
digitalWrite(S_aire3, HIGH);
digitalWrite(S_aire4, HIGH);
digitalWrite(S_aire5, HIGH);
int ldr_sensor = analogRead(36);
Serial.println(ldr_sensor);
}