1. A rain sensor for a vehicle, comprising: a camera provided in the vehicle for taking an image of a scene outside of the vehicle through a windshield of the vehicle with an infinite focal length; and a processor unit for detecting rain based on a variation degree of intensities of pixels, which are included in the image, from an average intensity of the pixels.