Page 67 - 2611_SmartGPT Pro V(5.0) C-6
P. 67
Magnetic Field Sensor: It detects magnetic fields around the device.
Near Field Communication (NFC) Sensor: It enables devices to share data when close together.
Orientation Sensor: It detects device angle and direction, used in auto-rotate screens,
AR apps and camera stabilisation.
Pedometer Sensor: It counts the steps you take while walking or running.
Proximity Sensor: It detects if an object is near the device without touching it.
Thermometer Sensor: It measures the temperature around the device.
Tick ( ) if you know this.
▶ The Location Sensor uses GPS to find the device’s position.
▶ The Thermometer Sensor measures the temperature around the device.
CREATING AN APP USING SENSORS
Sensors can create apps that respond to movement, like a Pedometer app, which counts steps
using a pedometer sensor and displays the count on the screen.
DESIGNING THE USER INTERFACE (UI) FOR THE PEDOMETER APP
To design the user interface for the
Pedometer app, follow the given steps:
Step 1 Create new project in the MIT
App Inventor.
Step 2 Change the name of the screen
to Pedometer in the Title text
box, adjust AlignHorizontal to
Center:3 and AlignVertical to
Center:2 in the Properties pane.
Step 3 Click on the User Interface
component.
PURE
FACT MIT App Inventor has over 400,000 unique monthly active users.
Touch to Motion with MIT 65

