 			// button
 			if (tmp_str[i + 1] == 'B' || tmp_str[i + 1] == 'b') {
 				int sensor_index;
-				sscanf(tmp_str + i + 2, "%d", &sensor_index);
+				int num_read = sscanf(tmp_str + i + 2, "%d", &sensor_index);
 				// Serial.println(sensor_index);
 				int sensor_value = buttons_controller.get_state(sensor_index);
 				sprintf(tmp_serial_out, "RB%d %d#", sensor_index, sensor_value);

				//          int pot_min, pot_max, pot_home;
				//		  int8_t pot_dir;
				byte pot_pin;
				sscanf(tmp_str + i + 2, "%d", &pot_index);
				potentiometers_controller.get_params(pot_index, &pot_pin);
				sprintf(tmp_serial_out, "GP%d %d#", pot_index, (int)pot_pin);
				i += 5;

			int _direction;
			int num_consumed;

			int num_read = sscanf(tmp_str + j + 1, "%d%d%d%d%d%n", &sensor_index, &_low, &_high, &_home, &_direction, &num_consumed);
			if (motor_type == 'S' || motor_type == 's') // attach to stepper motors controller
				steppers_controller.add_sensor(motor_index, POTENTIOMETER, sensor_index, _low, _high, _home, _direction);
			else
