To start off with, we can wire up the hardware for the project: Wire up the necessary hardware according to…