5. Sensors# 5.1. Overview 5.1.1. Types of Sensors 5.1.2. Sensor Data 5.2. Motion and Position 5.2.1. Accelerometers and Gryoscopes 5.2.2. Magnetometer 5.2.3. Optical Encoders 5.2.4. Magnetic Encoders and Distance Sensors 5.2.5. Global Navigation Satellite Systems 5.3. Light and Colour 5.3.1. Photoresistors 5.3.2. Photodiodes 5.3.3. Phototransistors 5.4. Environmental 5.4.1. Temperature Sensors 5.4.2. Humidity Sensors 5.4.3. Air-Pressure Sensors 5.4.4. Particulate-Matter Sensors 5.4.5. Gas and VOC Sensors 5.5. Touch and Proximity 5.5.1. Capacitive Sensors 5.5.2. Hall Effect Distance/Proximity Sensors 5.5.3. Ultrasonic Sensors 5.5.4. Infrared Time-of-Flight Sensors 5.5.5. LiDAR Sensors 5.6. Force and Fluid Pressure 5.6.1. Strain-Gauge Load Cells 5.6.2. Hydraulic Pressure Sensors 5.7. Signals 5.7.1. Analog Signals 5.7.2. Digital Signals 5.7.3. Digital Buses 5.8. Analog Sensors 5.8.1. Analog-to-Digital Converters (ADCs) 5.8.2. Example: Reading Analog Values With MicroPython 5.9. Buses 5.9.1. Examples 5.10. I2C 5.10.1. Addressing 5.10.2. Registers 5.10.3. Data Read 5.10.4. Data Write 5.10.5. Example: BME680 Sensor 5.11. Processing Sensor Data 5.11.1. Smoothing and Filtering 5.11.2. Dead Zones and Hysteresis