Arduino would be the way, there is a plugin for that