A moisture sensor device includes a sensor portion having a capacitance
that is varied in accordance with surrounding humidity, a signal
processor for processing a detection signal of the sensor portion and
outputting the signal corresponding to the humidity, a heating portion
for heating the sensor portion, and a controller for controlling heating
of the heating portion so that the capacitance of the sensor portion is
substantially equal to a value under predetermined humidity at least
during a self-diagnosis period.