You can drive with a bad oil sensor because this device by itself does not affect the vehicle's performance. The oil sensor tells you when you need to be aware of low oil pressure, which means you will not get this warning when the sensor is bad. \
Having low oil pressure can cause engine problems and can ultimately cause the engine to lock up. \