How to control the motor by PS2 using ardunio



Hi everyone i’m still beginner and i tried to control 6 bilge pump motor with the shock of PS2 but i couldn’t can anyone help me please ?
i’m using that library

the problem with understanding how to select the range of the shock