Yes. In the ST_Anything Arduino Library folder, you will find a file named “constants.h”. Edit this file to increase the Maximum number of sensors to a slightly larger value to accommodate your requirements.
#if defined(BOARD_MEGA) || defined(BOARD_MKR1000) || defined(BOARD_ESP8266) || defined(BOARD_ESP32)
//Maximum number of SENSOR objects
static const byte MAX_SENSOR_COUNT=30; //Used to limit the number of sensor devices allowed. Be careful on Arduino UNO due to 2K SRAM limitation
//Maximum number of EXECUTOR objects
static const byte MAX_EXECUTOR_COUNT=20;
Also, in the same file, I would recommend disabling the automatic periodic REFRESH. By default this updates the hub every 5 minutes with the current status of all devices. In your case, this is going to cause responsiveness issues, as the system cannot do anything else while this update occurs.
Uncomment the following line of code in constants.h by removing the “//“ at the start of the line.
//#define DISABLE_REFRESH //If uncommented, will disable periodic refresh of the sensors and executors states to the ST Cloud - improves performance, but may reduce data integrity