Update SmokeDetector.java