Fan and Digital Input

Thank you! I'll be sure to read it carefully.

--edit--
Done reading. Tanks a lot, you've solved my problem.