A sanitation device for an appliance is provided herein. The sanitation device includes a first housing. A sensor assembly is positioned within the housing. The sensor assembly is configured to detect humidity and temperature in the appliance. A light source is coupled to the sensor assembly where the light source emits ultraviolet light. A controller is coupled to the sensor assembly and configured to send and receive information from the sensor assembly.