Blocks Area
External Sensor
π External Sensor – Your “Extra Senses”
What it is: Blocks for reading data from external sensors.
What it does: Connects to and reads specialized sensors.
Example: Measures light, temperature, or distance.
π These are the robot’s senses (sight, hearing, touch).

Β
π§© Fun Guide to External Sensors Blocks (Clu-blocks Pro)
π Important! These blocks let your robot sense the world around it β temperature, motion, distance, and more. Itβs like giving your robot eyes, ears, and skin!
π οΈ I2C Setup & Sensor Configuration
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 1 | I2C setup β I2C extend β SCL = 2, SDA = 10, frequency = 100000 | Sets up I2C communication | β | Needed for sensors like accelerometers β SCL/SDA are data pins |
| 2 | count with I2C β I2C extend β xsensor β Acceleration sensor (ADXL345) | Initializes an I2C sensor | β | Prepares the ADXL345 to start sending data |
π Motion Sensor (Accelerometer ADXL345)
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 3 | Acceleration sensor ADXL345 β xsensor β Return acceleration (mg) β x | Reads acceleration data | x, y, z, (x,y,z) | Choose which axis to read β or all three at once |
π‘οΈ Temperature & Humidity Sensor (DHT11)
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 4 | DHT11 β PIN# 2 β Return temperature | Reads temperature from DHT11 | Return temperature, getHumidity | Choose whether to read temperature or humidity |
π Distance Sensor (Ultrasonic)
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 5 | Ultrasonic ranging (cm) β Trig # 2, Echo # 10 | Measures distance using sound | β | Sends a sound pulse and measures how long it takes to bounce back β great for obstacle detection |
π§ Quick Tips for Students
- Use I2C setup before using any I2C sensor β itβs like plugging in the wires.
- Use ADXL345 to detect movement, tilt, or vibration β perfect for motion-triggered actions.
- Use DHT11 to monitor room conditions β like turning on a fan if itβs hot.
- Use Ultrasonic to avoid obstacles β great for robot navigation or parking sensors.
- Combine sensors to make smart robots β like a weather station or a self-driving rover!