public void countSensorsType() {
        String str = "";
        str += "\n" + equal + "\n" + "COUNT TYPE SENSOR - " + this.nameSensorGroup+ "\n" + equal;

        Iterator iterator = iterator();

        while (iterator.hasNext()) {
            Sensor temp = (Sensor) iterator.next();

            if (temp instanceof ColorCamera) {
                countColorCamera++;
            } else if (temp instanceof MovementSensor) {
                countMovementSensor++;

            } else if (temp instanceof TemperatureSensor) {
                countTemperatureSensor++;
            } else if (temp instanceof ThermalCamera) {
                countThermalCamara++;
            }else if(temp instanceof SensorGroup){
                SensorIterable si = new SensorIterable((SensorGroup)temp);
                si.countSensorsType();
            }

        }
        str += "\n" + hifen + "\n" + "countColorCamera: " + countColorCamera;
        str += "\n" + hifen + "\n" + "countMovementSensor: " + countMovementSensor;
        str += "\n" + hifen + "\n" + "countTemperatureSensor: " + countTemperatureSensor;
        str += "\n" + hifen + "\n" + "countThermalCamara: " + countThermalCamara + "\n" + hifen + "\n";
        str += equal + "\n";

        System.out.println(str);

        countColorCamera = 0;
        countMovementSensor = 0;
        countTemperatureSensor = 0;
        countThermalCamara = 0;

    }