Line Follower: can my code be optimized?

I'll post a picture on how it looks irl in just a second, this is a quick sketch to start with