Sustain Pedal release value not 0
Hi! I have a Yamaha P-45 and a matching sustain pedal. When I press the pedal I receive a value of 127 (on), however when releasing value is around 53 and not 0 (off). So once I press the pedal, it holds the notes forever, despite I release the pedal. Any tips on how to fix that? I just recently started using logic, so I might need some detailed guidance! Thanks in advance.