HELP ARDUINO CODE

thank you johnwasser, im just a bit confused cause I'm new to arduino coding. I'm fairly decent in python and matlab. I'm only capable of manipulating already made code because of my prior knowledge. this project is due in 9 days and i'm running out of options. i have researched this project for a pretty long time and this is my final bet. if you can please show me which parts of the code to implement this. thank you for your replies!