There are many different links recommending you update many different config files to disable the screen from sleeping on a Raspberry Pi, but this is the simplest solution I've come across:
sudo apt-get install xscreensaver
Now open the app
Click Settings, then at the top choose Disable Screen Sleep from the dropdown. Now you're done!