Refactored class SensorDetector
Add function panic