Case 20: The Smart Airer
To make a smart arier.
Video link: https://youtu.be/ZjROexNQT1I
Installation Mthods of Hardwares
Install the water level sensor with the bricks.
Click "Advanced" in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
when button A is pressed, the two windows open outward and the airer extends outward. When button B is pressed, the airer retracts inward and the two windows close inward. When button A is pressed, the two windows open outward and the airer extends outward, the water level sensor will detect the current rain value, and when the rain value is greater than 10, the airer will automatically retract and the two windows will automatically close.