Grafana dashboard: envsensortest
Description: A dashboard depicting live data from two CO2 sensors.


{
  "__inputs": [
    {
      "name": "DS_MONGODB",
      "label": "MongoDB",
      "description": "",
      "type": "datasource",
      "pluginId": "grafana-mongodb-datasource",
      "pluginName": "MongoDB"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.2.0"
    },
    {
      "type": "datasource",
      "id": "grafana-mongodb-datasource",
      "name": "MongoDB",
      "version": "1.4.6"
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      },
      {
        "datasource": {
          "type": "datasource",
          "uid": "grafana"
        },
        "enable": true,
        "iconColor": "red",
        "name": "New annotation",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        }
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 5000,
          "min": 400,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "ppm"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 9,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "key": "Q-928a7e67-50a1-4aa2-b5e2-0155ea9bb098-0",
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorCO2\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorCO2\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "CO2 Concentration ",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.CO2"
              ]
            }
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 5000,
          "min": 400,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 70
              },
              {
                "color": "red",
                "value": 85
              }
            ]
          },
          "unit": "ppm"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 6,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.6-10b38e80",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorCO2\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorCO2\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "CO2 Concentration",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.CO2",
                "payload.time"
              ]
            }
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "dateFormat": "YYYY-MM-DD hh:mm:ss",
                "destinationType": "time",
                "targetField": "payload.time"
              },
              {
                "destinationType": "number",
                "targetField": "payload.CO2"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 40,
          "min": 10,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 9
      },
      "id": 11,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "key": "Q-c192b558-ee3b-4c70-afe3-0427fd3291bc-0",
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorTemperature\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorTemperature\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "Temperature",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.temperature"
              ]
            }
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 40,
          "min": 10,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 70
              },
              {
                "color": "red",
                "value": 85
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 9
      },
      "id": 7,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.6-10b38e80",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorTemperature\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorTemperature\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "Temperature",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.temperature",
                "payload.time"
              ]
            }
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "dateFormat": "YYYY-MM-DD hh:mm:ss",
                "destinationType": "time",
                "targetField": "payload.time"
              },
              {
                "destinationType": "number",
                "targetField": "payload.temperature"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "max": 100,
          "min": 0,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 70
              },
              {
                "color": "red",
                "value": 85
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 18
      },
      "id": 4,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorHumidity\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorHumidity\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "Humidity Levels",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.humidity"
              ]
            }
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 100,
          "min": 0,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 70
              },
              {
                "color": "red",
                "value": 85
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 18
      },
      "id": 8,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.6-10b38e80",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorHumidity\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"EnvironmentSensorHumidity\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/1/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "Humidity Levels",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.humidity",
                "payload.time"
              ]
            }
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "dateFormat": "YYYY-MM-DD hh:mm:ss",
                "destinationType": "time",
                "targetField": "payload.time"
              },
              {
                "destinationType": "number",
                "targetField": "payload.humidity"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 5000,
          "min": 400,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "ppm"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 27
      },
      "id": 13,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"SCD30_CO2\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"SCD30_CO2\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "CO2 Concentration 2",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.CO2"
              ]
            }
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 5000,
          "min": 400,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "ppm"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 27
      },
      "id": 14,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"SCD30_CO2\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"SCD30_CO2\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "CO2 Concentration 2",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.CO2",
                "payload.time"
              ]
            }
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "dateFormat": "YYYY-MM-DD hh:mm:ss",
                "destinationType": "time",
                "targetField": "payload.time"
              },
              {
                "destinationType": "number",
                "targetField": "payload.CO2"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 40,
          "min": 10,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 36
      },
      "id": 16,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"SCD30_Temperature\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"SCD30_Temperature\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "Temperature 2",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.temperature"
              ]
            }
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "payload.temperature"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 40,
          "min": 10,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 36
      },
      "id": 15,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"SCD30_Temperature\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"SCD30_Temperature\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "Temperature 2",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.temperature",
                "payload.time"
              ]
            }
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "dateFormat": "YYYY-MM-DD hh:mm:ss",
                "destinationType": "time",
                "targetField": "payload.time"
              },
              {
                "destinationType": "number",
                "targetField": "payload.temperature"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 100,
          "min": 10,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 45
      },
      "id": 17,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"SCD30_Humidity\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"SCD30_Humidity\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "Humidity Levels 2",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.humidity"
              ]
            }
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "payload.temperature"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "grafana-mongodb-datasource",
        "uid": "${DS_MONGODB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 100,
          "min": 10,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 45
      },
      "id": 18,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-mongodb-datasource",
            "uid": "${DS_MONGODB}"
          },
          "parsedQuery": "MonitorAirQualityDB.getCollection(\"SCD30_Humidity\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "query": "MonitorAirQualityDB.getCollection(\"SCD30_Humidity\").find({topic:\"FutureFarms/Malaysia/SemeOne/CO2/2/values\"})",
          "queryType": "query",
          "refId": "A"
        }
      ],
      "title": "Humidity Levels 2",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "payload.humidity",
                "payload.time"
              ]
            }
          }
        },
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "payload.temperature"
              },
              {
                "dateFormat": "YYYY-MM-DD hh:mm:ss",
                "destinationType": "time",
                "targetField": "payload.time"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "timeseries"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "envsensortest",
  "uid": "rUlTIX4Vz",
  "version": 14,
  "weekStart": "",
  "gnetId": 17207,
  "description": "A dashboard depicting live data from two CO2 sensors."
}