Hello I would realize this task with an Arduino. Sooner or later, additional wishes come to this function.