If you tied them together again like I did in my code. They are not entirely separate pieces. Your motor speed is tied to the sensor pressure. So, unless your motors are already adjusting speed based on pressure, your motor code is not already working as you want it.
The two things (sensor pressure reading and motor speed) are linked together. You read one and modify the other based on that reading. In order to constantly adjust to new pressures, you need to continually check the sensor and update the motor speed in a loop.
So, the answer is "sorta." But you will still need to link everything together. My code is already doing that, its just broken (only a very little) and needs you to fix it. You wouldn't need to completely rewrite something, just some small errors I put in there like misnaming things.
Try comparing your code that is working to the code that I posted and perhaps you will see at least a couple of the errors I put in there.
The only way that you are going to learn is by understanding how this code works. I could be wrong, but you seem a bit impatient and looking for someone to do it for you instead of trying to understand it yourself. The goal is to learn, not to just do it.