# Turbidity Sensor

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/turbidity3.jpeg" alt=""><figcaption></figcaption></figure>

Turbidity sensor can detect the turbidity(clearness/murkiness) of water.

### Product Specifications

* Voltage:3V\~5V
* Port: 3pin
* Operating Temperature: 5°C\~85°C
* Weight: 30g

### Hardware Connection

Connect Pin A to a signal pin, G and V to GND and 3V.

```
Turbidity Sensor is a analog sensor, it needs to connect to an analog pin.
It is recommended to use turbidity sensor with a water temperature sensor.
```

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/turbidity_wire.png" alt=""><figcaption></figcaption></figure>

### MakeCode Programming Tutorial

<figure><img src="https://kittenbothk-eng.readthedocs.io/en/latest/_images/mcbanner.png" alt=""><figcaption></figcaption></figure>

#### Search Robotbit in extensions. (Robotbit is verified by Microsoft)

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/robotbit_search.gif" alt=""><figcaption></figcaption></figure>

[Importing Extensions Tutorial](https://sharinghub-eng.kittenbot.hk/programming-platforms/makecode-tutorial/kittenbot-and-makecode)

#### Blocks for Turbidity Sensor:

<figure><img src="https://kittenbothk-eng.readthedocs.io/en/latest/_images/turbidity2.png" alt=""><figcaption></figcaption></figure>

#### Turbidity Sensor Programming

```
Calibrating the turbidity sensor with the water temperature can result in higher accuracy.
Note: The sensor is not waterproof, please do not submerge in water.
```

{% embed url="<https://makecode.microbit.org/_dopeRaesaKgY>" %}

[Sample Program](https://makecode.microbit.org/_WjmH6zahVTUe)

### Extension Version and Updates

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

[Makecode Extension Update](https://kittenbothk-eng.readthedocs.io/en/latest/Makecode/makecode_extensionUpdate.html)

### Futureboard KittenBlock Programming Tutorial

<figure><img src="https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbbanner.png" alt=""><figcaption></figcaption></figure>

#### Select FutureBoard from the Hardware Menu

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/turbidity_kb1.png)

#### Programming Blocks for Turbidity Sensor

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/turbidity_kb2.png)

#### Turbidity Sensor Programming

```
Using a water temperature sensor to calibrate the turbidity sensor will result in more accurate readings.
Caution: The Turbidity Sensor is not waterproof, do not immerse the entire sensor into the water.
```

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/turbidity_kb3.png)

[Sample Program](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/images/turbidity_kittenblock1.88.sb3)

### Demo Video

#### Micro:bit

{% embed url="<https://youtu.be/4ePV6fmwoAA?t=77>" %}

#### Futureboard

{% embed url="<https://youtu.be/4ePV6fmwoAA?t=7>" %}
