Lighting an LED when a HC-SR04 ultrasonic sensor is triggered

@sterretje
Okay, I'll try playing around with a for loop instead of the if/else. Thanks!

UPDATE:
As I was playing around with the for loop, it occurred to me to go back to the if/else and try writing a function for each individual sensor since I couldn't get the array to work the first time. I'm positive that my way is over complicating my code, but so far it works.

FINAL UPDATE:
@sterretje (+1 Karma)
It worked adding an individual function for each sensor.
Thank you very much for the help, sir. I couldn't have done it without you! :smiley: I'll continue learning about arrays for future use.