while True: if sensor.value() == 0: # Check if output is LOW (obstacle detected) led.value(1) # LED ON print("Obstacle detected!") else: led.value(0) # LED OFF time.sleep(0.1)
Detecting black lines on a light surface.
Hide an FC-51 inside a sculpture or a picture frame. When someone leans in to look, the sensor triggers a hidden MP3 player to play a whispered phrase, animal sound, or rain effect. This creates an eerie, immersive gallery experience.
while True: if sensor.value() == 0: # Check if output is LOW (obstacle detected) led.value(1) # LED ON print("Obstacle detected!") else: led.value(0) # LED OFF time.sleep(0.1)
Detecting black lines on a light surface.
Hide an FC-51 inside a sculpture or a picture frame. When someone leans in to look, the sensor triggers a hidden MP3 player to play a whispered phrase, animal sound, or rain effect. This creates an eerie, immersive gallery experience.