MEMS sensors are microelectromechanical systems that use mechanical and electrical components to detect and measure physical quantities. There are several types of MEMS sensors including inertial, optical, pressure, and chemical sensors. Common MEMS sensors are used in smartphones for functions like orientation detection, motion sensing, proximity detection, ambient light sensing, and fingerprint scanning. Other applications of MEMS sensors include robot vacuums that use infrared, cliff, and object sensors to navigate, and smartwatches that measure heart rate using green LEDs, infrared light, or a combination. Emerging applications of MEMS sensors include molecular identification sensors and 3D scanners.