Смотреть видео: Code for AC Dimmer with Touch POT - Home Automation - Arduino Forum