Esp32 "expression must have pointer-to-object type"

The code is slightly incomplete. Where’s the definition of sensordatatype, SensorReadingPointer, NumOfSensors, SensorReadings ?

Well byte ptr isn’t really a pointer here in the C/C++ type sense, it’s a numerical index.