As others have pointed out the use of delay is the main problem in your code. Without a complete re-write to use non-blocking code without delay you are not going to fix this, and certainly not in 1 day. The tutorials you need to understand to re-write your code are on this forum and are commonly referenced for this kind of problem. The ones I suggest are:
This shows you how to handle serial data properly:
This gives examples of using millis for timing, no delays: