Position sensors are used to indicate the position of various mechanical components in an engine. Common position sensors include the throttle position sensor (TPS), accelerator pedal position (APP) sensor, and exhaust gas recirculation (EGR) valve position sensor. These sensors work by using a wiper arm attached to the moving component that slides along a resistor, changing the output voltage to indicate position. The electronic control module (ECM) uses these position signals to control various engine functions like air-fuel ratio, emissions systems, and more.