Here’s the standard troubleshooting checklist. It’s also possible it’s a defective device, it can happen. But try these steps first:
What’s the brand and model of the sensor?