It's all done using sensors. Sensors are embedded in every physical device. It can be your mobile phone、 electrical appliances、 vehicles、 bar code sensors 、traffic lights and almost everything that you come across in day to day life. These sensors continuously emit data about the working state of the devices.