SunFounder ESP32 Starter Kit
4.13 2.10 Light Sensitive Ball
In this project, we use Photoresistor to make the ball on the stage fly upwards. Place your hand on top of the photoresistor
to control the light intensity it receives. The closer your hand is to the photoresistor, the smaller its value and the higher
the ball flies on the stage, otherwise it will fall. When the ball touches the string, it makes a nice sound as well as a
twinkling starlight.
534 Chapter 4. Play with Scratch