add darkness_detection, stop_darkness_detection and darkness_Detected
functions