An arduino comes in handy for all sort of small control tasks.
Cost of this article are around: 3 EUR
You can purchase the article under the following links:
Disclosure: Some of the links above could be affiliate links. This means that - at no additional costs to you - I earn a small commission when you purchase products through these links.