SENSOR DE APARCAMIENTO "LedV LedR LedAm"
USAMOS LedV: 7, LedAm: 6, LedR: 5
APAGAR LedV
APAGAR LedAm
APAGAR LedR
LEER SENSOR DISTANCIA
ENVIAR LECTURA AL MONITOR SERIE
DISTANCIA >60
VERDADERO APAGAR LEDES
FALSO DISTANCIA >40
VERDADERO ENCENDER SOLO LED VERDE
FALSO DISTANCIA >20
VERDADERO ENCENDER SOLO LED AMARILLA
ESPERAR 250ms
FALSO ENCENDER SOLO LED ROJA
USED LedV: 7, LedAm: 6, LedR: 5
Set pin 7 to LOW
Set pin 6 to LOW
Set pin 5 to LOW
Read ultrasonic distance sensor on tiger
Print to serial monitor with newline
If sensor_val >60
True LOW leds
False sensor_val> 40
True LOW Led7
False sensor_val> 20
True LOW Led6
Wait 250ms
True LOW Led5