A code for my hardware project to measure brain waves for example alpha, beta, gamma. After the measurement of the brain waves, the code will check the ranges of each registered brain waves. After measuring the brain wave the state should be printed on the screen. Every brain wave is responsible for a certain state in the brain for example, if the delta between 1 and 3 sleep state will be printed. I will provide you as an attachment the brain library, brain waves and their states and ranges, and 2 similar codes of what I want. Some hardware has to be defined in the project like the relay, TFT SaintSmart Screen, and I will provide you with the libraries and the definitions.