Robotics · lesson 18 of 30 · free

Light sensors and lines — Robotics for kids

A line follower robot uses light sensors that shine light at the floor and measure how much comes back. White reflects a lot (a high reading); black soaks up light (a low reading). The threshold is the cut-off between them — a good choice is halfway between the black and white readings. With two sensors, one on each side of the line, the robot knows where the line is: if the left sensor reads black, the line is under the left sensor.

▶ Watch how it works

Got it? Practise ↓

Robot tip

Below the threshold is black — “black soaks up light, so a low reading means the sensor is over the line”

  1. Reading below the threshold → black; above → white.
  2. Threshold = (black reading + white reading) ÷ 2.
  3. Two sensors: the one that reads black is over the line; both white → the line is between them.

Use it for: Building or programming a line follower robot, robotics competitions and science lessons on light.

Worked example: 🔦 A robot has a left and a right light sensor. Below 50 means black. The left sensor reads 25 and the right sensor reads 80. Which sensor is over the black line? → the left sensor

  1. Left: 25 is below 50 → black. Right: 80 is above 50 → white.
  2. So the left sensor is over the black line.

Check: With readings 20 and 80, a halfway threshold is (20 + 80) ÷ 2 = 50 ✓

▶ Watch it animated

✏️ Practice

Work it out in your head or on paper, type the answer and press Check. Stuck? Press “Show me how”.

Right: 0 · Tried: 0

🏁 Lesson 18 test

20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.

🏅 Sign in with Google to earn the 🔦 Line Spotter badge when you pass — and a certificate when you finish all 10 lessons of Part 2 · How robots move and sense. You can still take the test without signing in.

🖨️ Robotics Worksheet: Line Follower Light Sensors

✨ Free AI tutor

Ask the AI tutor about this lesson

Why does it work? When should you use it? Ask in English, मराठी or हिंदी.

Sign in with Google to ask Free — 20 questions a day.

👩‍🏫 Robotics classes near you — online or at home

Prefer a real teacher? TalentJR teachers take live online classes anywhere in India and visit homes in selected cities. Tell us what you need and our team will call you with timings and fees.

Live online classesSmall groups or 1:1 with a teacher, from home, any city.
Teacher at homeA TalentJR teacher visits your home (selected cities).
At a centreClasses at a TalentJR partner centre near you, where available.
Badges, certificates & gifts A badge for every lesson you pass, a certificate for every part you finish, plus TalentJR Points for daily practice. Electronics & IoT Circuits, sensors and microcontroller boards.