Rain Sensor

Hello, I am struggling to create a code for Arduino Uno in which use of a sensor that when it rains it chuva.Queria giri motor and stop.
Would you like an idea, please.

Can't understand the question. Please use Google Translate to translate your native language into English before posting.

If you just want to use a sensor to detect the rain or water, there are lots of simple rain modules on the market..., and the usage is really easy.

requested to elobarte question. What kind of rain sensor using.
what is your actual application??