Updated the random test. Door closed sensor working now. :)