Things used in this project

Hardware components:
micro:bit BBC micro:bit board
13637 01
SparkFun SparkFun Soil Moisture Sensor (with Screw Terminals)
SparkFun JST Jumper 3 Wire Assembly
SparkFun SparkFun micro:bit Breakout (with Headers)
12002 04
Breadboard (generic)
Software apps and online services:

Custom parts and enclosures

Code for Micro:Bit Makecode
Screen shot 2017 07 09 at 11 09 07 pm h19kjdcbvv


Option A: With breadboad
Connect using a breakout board and bread board
Microbit moisture sensor1 texdwggdb8
Option B: With out bread board/breakout board
Use wires to connect micro:bit to moisture sensor. Use diagram for guidance.
Microbit moisture sensor2 v3rfmtxbrx


Code for MicropythonPython
from microbit import *

while True:
    lightSensor = pin1.read_analog()
    if lightSensor > 200:
        smile = Image(  "00000:"
    elif lightSensor < 200:
        frown = Image(  "00000:"



Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Similar projects you might like

Bikeyface Emoji Taillight (with Micro:bit)
  • 466
  • 12

Full instructions

Express yourself with your bike lights!

Make Your BBC Micro:Bit Talk Using MicroPython
  • 383
  • 8


Today, I am going to show you how to make your Micro:bit talk using a very easy programming language called MicroPython.

Display Your Name On Micro-Bit Using MicroPython
  • 345
  • 6

Full instructions

In this tutorial, I am going to show you how to code BBC micro:bit using MicroPython to display your name and other basic symbols.

magic button trick
  • 239
  • 4

Full instructions

Build a magic trick to amaze your friends that uses the micro:bit’s compass to detect a nearby magnet!

magic button trick

Team micromonsters

Getting Started with BBC Micro:Bit
  • 918
  • 11

Full instructions

This tutorial will show you the basics to get started with BBC micro bit.

Are You in Tune?
  • 571
  • 6

Work in progress

There are many ways/apps/tools to tune an ukulele, and now there is one more!

Add projectSign up / LoginAbout BBC micro:bit