Micro bits science project #2

Micro bits blog post #2

I started off by brainstorming how I would go through with coding my micro bit. I knew that I needed a moisture sensor and a buzzer, but I did not know exactly how to code them.

This was my first code, but it did not end up working. After doing a little more research I started to get the hang of it. I figured out that I needed to make variables and assign them to a specific pin. This is my end code:

In this code, I made it so that the moisture sensor would display the moisture level, and if the moisture was over 40, the buzzer would go off.

Leave a Reply

Your email address will not be published. Required fields are marked *