---
description: Hot,Warm. Cold?
---

# Micro:Bit Beacon Hunter

The Micro:Bit beacon will be set to group 112 and will hidden upstairs at DHS. Your micro:bit should be set to be listening for a signal and measuring the signal strength

#### The signal will be a random number every three seconds

The closer you are  to the beacon the warmer you are -&#x20;

### `-128` means a weak signal and `-42` means a strong one.

![](https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpUPSf3tCxHePJxNjfg%2F-M1zlhrTpT2772MKO2-A%2F-M1zlrA_lwE71WRsvB29%2Fimage.png?alt=media\&token=40f98949-6783-44c3-b4f1-ea64e62915d6)

```
When program Starts
    show an icon to confirm ready to go
    set radio group to 112
    
```

#### Goal: When your micro:bit receives a number - analyze the signal strength and store that value in a variable you create called signal&#x20;

```
When number received
    set signal to received packet signal strength
    
    //block of code pictured below
```

**Now - what do you want to appear on the LED Screens for Hot, Cold and Warm?**

```
When number received
    set signal to  received signal strength
    IF the value stored in signal is < -95
        DISPLAY cold
        ELSE IF the value stored in signal is < -60
            DISPLAY warm
            ELSE 
                DISPLAY HOT 
```

To get the `IF/Else` block to add the final `ELSE` hit the + at the bottom

![](https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpUPSf3tCxHePJxNjfg%2F-M1zkwrYZBWyYJHF_Rtg%2F-M1zl_xQdWZrMMX6D0O-%2Fimage.png?alt=media\&token=07ff6fe2-e664-4795-8c42-15c746d47cbf)
