The rain sensor is a led and photo cell that picks up a reflection off of the windshield, its located right at the rear-view mirror mount. If anything like dirt, stickers, cracks in the glass happen there, it can wreak havoc with the sensor. Did anything change between working and not working? new stereo install? other accessory?