Automotive Rain sensor


I'm looking to use an optical automotive train sensor to detect rain ! , to produce a rugged long lasting sensor.
There are loads of used car ones on eBay , but does anyone know the wiring diagram
for any of these or what form the output signal takes ? ( voltage, pulses ??)