Added some code for the Sunset Detector

Signed-off-by: Nicholas Kamper <kampernj@rose-hulman.edu>