Lesson 3 Seedling Stage: Environmental Data Monitoring
Challenges: 3-1, 3-2
Students learn how to make the UNIHIKER K10 show sensor values on its screen.
I can combine text and sensor values on the UNIHIKER K10’s screen.
I can represent data using both text labels and visual charts.
I can explore other sensors to monitor more environmental conditions for seedlings.
Engage
2 min.
Have you ever planted a seed, checked it every day, and wondered: Is it too hot? Is the air too dry? Farmers use agricultural weather stations to keep track of these conditions for their crops. These stations help them make sure seedlings get exactly what they need to grow strong.

How could we build a mini weather station using our UNIHIKER K10 to watch over our seedlings?
Background
3 min.
Temperature & Humidity Sensor: This small device measures air temperature (in °C) and humidity (as a percentage—how much water is in the air). This sensor reads values as integers. Its temperature detection range is 0 to 50 degrees Celsius, and humidity ranges from 20 to 90 %RH.

The initialize screen orientation block rotates display view and the default angle is 0°. The parameter sets counterclockwise rotation for K10, with text shown top-down and left-right after adjustment.

The cache text + read pin block will show the sensor value on
the UNIHIKER K10’s screen.

The cache draw rectangle block uses XYWH parameters to control its position and size. This block could be used to create bar graph for data visualization.

Build and Connect
10 min.
![]() | Build together by the Building instruction. |
Program
25 min.
Challenge 3-1: Make Sensor Data Meaningful
![]() | ![]() Ask students to connect the Temperature & Humidity Sensor to the UNIHIKER K10. The pin number does not matter, but it must match the code settings later. Here is a sample: |
![]() | Direct students to open Program3-1 in their Mind+. Adjust the pin setting to match your sensor’s connection, upload the program and observe the raw number on the screen. |
![]() | ![]() Guide student to discuss: What’s missing from this display?How would someone know this number represents temperature?Encourage students to add values’ name like “Temperature”, and use different text colors and positions to distinguish temperature and humidity data. Here is a sample: |
Challenge 3-2: Visualize Data with Bar Graphs
![]() | Ask students to load the starter project program3-2 and upload it. Explain that this program uses a horizontal bar graph to represent humidity levels. Test: Breathe on the sensor to see the bar change. Guide students to share how does the bar graph makes humidity data easier to understand than numbers? |
![]() | Have students modify the XYWH parameter in the cache draw rectangle block, pose these questions:What happens when you adjust the X value? What about the Y value?If you want the bar graph to be “fatter” (wider), which parameter do you need to change? |
Extra Practice
5 min.
Ask students to browse the UNIHIKER K10’s Sensors library for other data monitoring displays.

Show students how to use when button events to change background color.

Ask students to create a program that makes the UNIHIKER K10 to display different background colors when different buttons are pressed.
Next Class: Lesson 4
Current Tutorial: Click Here

















