Yes, there's a free app for that.
SightKick uses artificial intelligence to detect when a user’s blink rate is down, gently nudging them to look 20 feet away from their screen while blinking for 20 seconds.
It also sends them a reminder every 20 minutes with the aim of helping to restore their eyes’ natural tear film and keep them refreshed.