Detective Dot: Fun Computer Coding and Online Safety Lesson for Kids

Teach young learners computer basics, sequencing, simple coding, and online safety with this engaging Detective Dot lesson. Children practice following instructions, creating picture codes, sorting safe and unsafe computer actions, and learning to stop and ask a trusted adult.

Previous Lesson
PDF

Detective Dot and the Safe Computer Code

Materials Needed

  • Paper and crayons or washable markers
  • Five small cards or sticky notes
  • Blocks, buttons, or small toys for counting
  • A toy computer, tablet, or pretend keyboard
  • A magnifying glass, optional
  • Two small boxes or baskets labeled “Safe” and “Ask an Adult”

Learning Objectives

By the end of the lesson, the child will be able to:

  • Explain that a computer follows instructions.
  • Sort simple actions into “safe” and “ask an adult.”
  • Follow and give a short sequence of two or three instructions.
  • Create a simple pattern or “code” using pictures, colors, or movements.
  • Say one important computer-safety rule: “Stop and ask a trusted grown-up.”

Success Criteria

I can:

  • Give instructions in the right order.
  • Tell whether an online action is safe or needs adult help.
  • Make a small pattern and explain what it means.
  • Remember to ask a trusted grown-up before clicking something unfamiliar.

Introduction: The Mystery Message

Time: 5 minutes

Show the child a card with simple symbols, such as a red circle, blue square, and yellow star. Say:

“Detective Dot found a mystery message! Computers use instructions, just like we use words to tell a friend what to do. Today we will become safe computer detectives.”

Ask:

  • “What does a computer do?”
  • “How do we tell someone what to do?”
  • “What should we do if a computer shows something we do not understand?”

State the lesson goal in child-friendly language:

“Today we will practice giving instructions, making a simple code, and staying safe when we use a computer.”

Body

Part 1: I Do — Computers Follow Steps

Time: 7 minutes

Place three objects in a line. Model a simple set of instructions:

  1. “Pick up the red block.”
  2. “Put it beside the blue block.”
  3. “Give one clap.”

Say:

“I followed the steps in order. Computers need clear steps, too. A computer does not guess what we mean.”

Model a silly unclear instruction, such as “Put it over there,” and ask:

“Is that instruction easy to understand? What could I say instead?”

Quick Check: Ask the child to put a toy under a chair, beside a book, or inside a box. Notice whether the child follows the steps in order.

Part 2: We Do — Follow My Robot Instructions

Time: 8 minutes

Tell the child that one person will be the “robot” and one person will be the “instruction giver.” Take turns.

Use simple instructions such as:

  • “Take two steps forward.”
  • “Touch your head.”
  • “Turn around.”
  • “Put the block in the basket.”

After each turn, ask:

  • “What step came first?”
  • “What happened next?”
  • “Was the instruction clear?”

Think-Pair-Share Option: If another learner is available, let the children quietly think of an instruction, tell a partner, and watch the partner follow it. For homeschool learning, the adult can be the partner.

Part 3: I Do — Safe or Ask an Adult?

Time: 7 minutes

Show the two baskets labeled Safe and Ask an Adult. Explain:

“Some computer actions are okay with a grown-up’s rules. Some actions need a trusted grown-up to help. When we are unsure, we stop and ask.”

Model the safety rule:

“Stop. Move your hand away. Ask a trusted grown-up.”

Use these simple examples:

  • Looking at a picture with a grown-up: Safe with permission
  • Clicking a button that suddenly appears: Ask an Adult
  • Typing your name or home address: Ask an Adult
  • Using a learning game chosen by a grown-up: Safe with permission
  • Talking to a stranger online: Ask an Adult

Avoid using real websites, pop-ups, or unfamiliar links during the activity.

Part 4: We Do — Safety Sorting Game

Time: 8 minutes

Read one situation at a time. The child places a toy or card in the “Safe” or “Ask an Adult” basket.

  1. “A grown-up says it is time to play a learning game.”
  2. “A strange message asks for your name.”
  3. “You see a button you do not recognize.”
  4. “You are drawing on a pretend computer.”
  5. “Someone online asks to see where you live.”

After each answer, ask, “Why?” Accept short answers such as “I need help,” “I do not know it,” or “It is okay with my grown-up.”

Formative Assessment: Listen for the child’s ability to identify unfamiliar requests and remember to ask an adult.

Part 5: You Do — Make a Picture Code

Time: 10 minutes

Invite the child to create a code using three pictures or colors. For example:

  • Red circle = clap
  • Blue square = stomp
  • Yellow star = touch your nose

Help the child make a three-card code, such as:

Red circle → Yellow star → Blue square

The child performs the code. Then switch roles and let the child give the adult the instructions.

Offer choices:

  • Make a movement code.
  • Make a block-building code.
  • Make a drawing code.
  • Make a toy clean-up code.

Encourage the child to explain:

“My first picture means ____. My next picture means ____.”

Real-World Connection

Explain:

“People use instructions every day. Recipes, traffic lights, toys, and computers all use steps. Clear steps help us know what to do. Safe computer users ask a trusted grown-up when something is confusing.”

Differentiation

Support for Learners Who Need More Help

  • Use only two instructions at first.
  • Give the child picture cards instead of spoken instructions alone.
  • Demonstrate each action before asking the child to try.
  • Use repeated language: “Stop, move away, ask.”
  • Allow pointing, acting, or drawing instead of giving a verbal answer.

Extensions for Learners Ready for More

  • Create a four- or five-step code.
  • Include a “repeat” step, such as “clap two times.”
  • Write or draw instructions for a toy robot.
  • Invent a pretend computer-safety story with a beginning, middle, and end.
  • Ask the child to correct an instruction that is out of order.

Conclusion: Detective Dot’s Safety Promise

Time: 5 minutes

Ask the child to complete these sentences:

  • “A computer follows ____.” (instructions or steps)
  • “If I see something strange, I ____.” (stop and ask a trusted grown-up)
  • “My code begins with ____.”

Review the main ideas:

  • Computers follow clear steps.
  • Instructions work best when they are in order.
  • We do not share private information without a trusted grown-up’s help.
  • When something is unfamiliar, we stop and ask.

Invite the child to repeat:

“I can be a safe computer detective: stop, move away, and ask a trusted grown-up.”

Assessment

Formative Assessment

  • Observe whether the child follows two- or three-step directions.
  • Ask the child to explain why an unfamiliar computer request needs adult help.
  • Check whether the child can create and perform a simple code.
  • Give immediate feedback: “You put the steps in the right order,” or “You remembered to ask for help.”

Summative Demonstration

The child completes all three tasks:

  1. Gives or follows a three-step instruction sequence.
  2. Sorts at least four of five safety situations correctly.
  3. Creates and explains a simple picture, color, or movement code.

Reflection

Ask:

  • “What was your favorite code?”
  • “What can you do when a computer shows something confusing?”
  • “Who is a trusted grown-up you can ask for help?”

Ask a question about this lesson

Loading...

Related Lesson Plans

How to Roller Skate for Beginners: Easy Step-by-Step Lesson on Safety, Balance, Gliding & Stopping

Master the roller skating basics with our easy-to-follow guide for beginners! Learn essential safety tips, how to balanc...

Kids Mystery Detective Reading Activity: Find Clues & Solve Stories

Engage young readers! Learn to read like a detective with this fun activity. Kids identify mystery elements, find clues,...

Body Safety Lesson Plan for Kids: Teaching Safe Touches & 'No, Go, Tell'

Empower young children with this comprehensive lesson plan on personal body safety. Perfect for parents and educators, t...

Beginner's Guide to Block Coding: Create Your First Simple Game with Scratch

Learn the fundamentals of game creation with block coding! This easy-to-follow guide introduces beginners (kids and adul...

Fun T-Ball Lesson Plan for Kids: Hitting Drills, Stance & Safety

Teach kids the fundamentals of T-ball with this fun lesson plan! Perfect for beginners (K-2), it covers batting stance, ...

Easy & Fun Kids Nature Walk Activity: Explore Outdoors & Become a Nature Detective

Get kids excited about the outdoors with this easy-to-follow Nature Walk adventure! Guide young Nature Detectives as the...