MobDojoStart learning free

Mobile Fundamentals · Inside a Phone · Lesson 2 of 4

Sensors

The dozen tiny sensors that let a phone feel the world.

10 min60 XPFree lab

A phone that feels

Your phone is full of tiny sensors that measure the world around it. Most are chips just a few millimeters across, and nearly every smartphone carries a set of them.

These sensors produce data all the time. On both Android and iPhone, apps can usually read the motion sensors without asking you first. Researchers have shown that motion data can sometimes reveal what someone typed on the screen, so sensor data is more sensitive than it looks.

Which floor?

Some sensors are more useful than they look. The barometer measures air pressure, the same thing weather stations track. Air pressure drops slightly as you go higher. By watching tiny changes in pressure, a phone can tell when you've gone up or down, even by a single floor.

That's how the Health app on iPhone counts flights of stairs climbed, and many fitness apps work the same way. Most iPhones since the iPhone 6 have a barometer, and so do many Android phones, though not all.

Height matters in emergencies too. In the US, the FCC set a target for carriers to locate indoor 911 callers vertically to within 3 meters, roughly one floor, so responders know which floor of a building to search. Barometer readings from the phone are one of the main ways to meet it.

For investigators, this kind of data can show whether someone climbed stairs or changed floors at a certain time. That can still work indoors, where GPS is often weak.

Test yourself

Can you answer these?

  1. Which sensor lets your phone turn off the screen when you hold it to your ear?
  2. Which sensor measures air pressure?

Answer them in the app to earn 60 XP.

Answer in the app