The oil pump is responsible for pumping oil throughout the engine, while the oil pressure sensor measures the pressure of the oil in the engine. If the oil pressure sensor is faulty, it can give you false readings about the oil pressure in your engine.