# 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](/programming-platforms/makecode-tutorial/kittenbot-and-makecode.md)

#### 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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub-eng.kittenbot.hk/functional_module/turbidity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
