Using ultraviolet sensors in embedded designs