0Pricing
Arduino & IoT Academy · Lesson

Inputs, Outputs & the Real World

How sensors read the world and actuators change it.

Inputs, Outputs & the Real World is a free Arduino & IoT Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Arduino & IoT Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Two Directions

Every Arduino project is built from two flows: information coming in from the world, and signals going out to change it. 🙂

Inputs Bring Data In

An input is anything that tells your board about its surroundings, like a button being pressed or a room getting warmer.

Sensors Read the World

A sensor is an input device that measures something real, heat, light, or distance, and hands your board a number.

Outputs Push Action Out

An output is how your board changes the world: lighting an LED, spinning a motor, or beeping a buzzer.

Actuators Do the Doing

An actuator is an output that creates physical action, like a motor that moves or a speaker that makes sound.

Pins Carry Both

The same Arduino pins handle both jobs. You simply tell each pin in code whether it should listen or speak.

Setting a Pin's Role

You declare a pin's direction with one command. Here pin 13 is set up as an output so it can drive an LED.

pinMode(13, OUTPUT);

Reading an Input

To listen instead, you read a pin's value. This grabs the state of a button wired to pin 2 so your code can react.

int state = digitalRead(2);

The Loop That Joins Them

The magic is connecting them: read an input, decide, then drive an output. That tiny chain is the core of every gadget.

A Familiar Example

A motion light reads a sensor for movement, then drives a lamp on. Input in, output out, just like you'll build.

Why It Matters

Master inputs and outputs and you can build almost anything. Every project you'll make is just a clever mix of these two.

Quick Check

Let's sort inputs from outputs.

Recap

Inputs and sensors bring data in; outputs and actuators push action out. Read, decide, act, that loop powers every device. 🔁

Frequently asked questions

Is the “Inputs, Outputs & the Real World” lesson free?

Yes — the full text of “Inputs, Outputs & the Real World” is free to read here on the web, and the Arduino & IoT Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Arduino & IoT Academy course, upgrade to CoddyKit PRO.

What will I learn in “Inputs, Outputs & the Real World”?

How sensors read the world and actuators change it. You practise Arduino & IoT Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Arduino & IoT Academy?

No prior experience is required. Arduino & IoT Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Inputs, Outputs & the Real World” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Arduino & IoT Academy lesson?

Yes. Every Arduino & IoT Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. From Computer to Microcontroller
  2. What 'Internet of Things' Means
  3. Inputs, Outputs & the Real World
  4. Your First Smart-Device Idea
← Back to Arduino & IoT Academy