Help ! LIDAR SENSOR 3901-L0X How to set it?

My problem is the Matek Lidar 3901-L0X - I have a "BAD OPTFLOW ERROR
FC TX5 From LIDAR SENSOR 3901-L0X RX
FC RX5 From LIDAR SENSOR 3901-L0X TX

Setup the following
RNGFND1_TYPE =32 & 31
FLOW_TYPE = 7
SERIAL5_PROTOCAL = 32 & 29
SERIAL5_BAUD = 115
It s not working
rangefinder1 2 3 =0
firmware is ArduCopter 4.0.7