Sensors, Actuators, Percepts, and Actions
To understand how agents interact with their environments, it is important to distinguish the information they receive from the actions they perform.
Sensors
Sensors allow an agent to collect information from its environment.
Examples include:
- Cameras that capture images.
- Temperature sensors that measure heat.
- Microphones that capture sound.
- GPS receivers that estimate location.
- Software interfaces that receive user input or application data.
A software agent may not have physical sensors. It can obtain information through APIs, databases, messages, or files.
Actuators
Actuators allow an agent to perform actions that affect its environment.
Physical examples include motors, robotic arms, and steering mechanisms.
Software agents may perform actions such as sending an email, displaying a response, updating a database, or calling an API.
Percepts
A percept is the information an agent receives from its environment at a particular moment.
For example, a robot vacuum may receive a percept indicating that an obstacle is directly ahead.
A sequence of percepts gives the agent information about how its environment changes over time.
Actions
An action is something the agent does in response to its observations and decision-making process.
For example, a robot vacuum may:
- Move forward.
- Turn left.
- Turn right.
- Stop.
- Return to its charging station.
Practical Example: A Smart Irrigation System
Imagine an intelligent irrigation system designed to water plants only when necessary.
Component | Example |
| Environment | Garden or agricultural field |
| Sensor | Soil moisture sensor |
| Percept | Soil moisture is below the desired level |
| Decision | Determine whether watering is required |
| Actuator | Water valve |
| Action | Open the valve and water the plants |
| Goal | Maintain suitable soil moisture while avoiding unnecessary water use |
The system could also consider weather forecasts, plant type, and water availability before taking action.
Why These Components Matter
A well-designed agent needs reliable observations and suitable actions. If its sensors provide inaccurate data, its decisions may be poor. If its available actions are insufficient, it may be unable to achieve its goals even when it understands the situation correctly.
Artificial Intelligence Tutorial
Vishalini A








