Arduino is an open-source electronics platform. A good way to get started is with a starter kit like the Elegoo Starter kit contains everything you need.
Caffeine is a free tool by Zhorn Software that prevents your computer from sleeping or locking. Caffeine works by simulating a keypress once every 59 seconds.