if I change the CONN_PARAM form 6 to 2 the arduino sets the CONN_PARAM automatically at 16.
// Write the data to the BLE characteristic
if (!customCharacteristic.notify((uint8_t*)dataPacket, sizeof(dataPacket) - 1)) {
I think the set value is too small and has been corrected to the default value of 16, but unfortunately I can’t remember where I saw the minimum value of 6.
It looks like you are preparing data on this line, why don’t you find out how many seconds the data is ready?
Maybe a simpler sketch (with fixed packet data, without moving the sensor) would solve the problem faster and check the throughput.