2 button control program

Hi!

I am working on a project, like when I push a button arduino should control 2 motors in an exacly sequences and when a push the second button arduino should variate the speed of the motors as the pressure sensor variate, teorethically the code is ok, but it’s not working, any advice?

ANSAMBLU_MOTOR_SENZOR_PRESIUNE_BUTOANE.ino (1.7 KB)

lucianstiubr:
but it's not working, any advice?

I don't know. Change the code to make it work?

Start by posting the code here and describing the problem