void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(33, INPUT);
pinMode(22, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
// this speeds up the simulation
int a=analogRead(33);
Serial.println(a);
if(a==244 && a>0){
digitalWrite(22, HIGH);
}
else
{
digitalWrite(22, LOW);
}
}