MoreSense MS-05 CO2 Sensor

CO2 Sensor

USER MANUAL

MODEL: MoreSense MS-05

External Attributes

CO2 Sensor

General

The MoreSense MS-05 multi-sensor accurately measures carbon dioxide (CO2), temperature, and humidity. It is equipped with a Sensirion SCD40 sensor, which operates on photo-acoustic NDIR technology, yielding precise measurement data. CO2 levels are determined using infrared light, which is absorbed by CO2 molecules. The extent of this absorption generates a specific sound, which is captured by a microphone and converted into a quantifiable measure of CO2 particles. This technique offers the advantage of compact sensors with low power consumption. The MS-05 features an RGB (Red, Green, Blue) LED that visually represents CO2 values through color coding. The following colors and corresponding values are utilized.

400 to 1000 green
1000 to 1500 orange
> 1500 red

The MS-05 can connect to a WiFi network, although this is not a requirement. When connected, the measured values can be accessed through the integrated web server. Additionally, various parameters can be configured, and firmware updates can be executed.

The sensor is equipped with an MQTT client, enabling integration with various home automation systems, including Domoticz and Home Assistant. Additionally, it can be directly connected to a “Homey” home automation controller. These connections offer numerous automation possibilities, such as managing a ventilation system. Furthermore, the sensor can be linked to a smart plug, allowing for the operation of devices like an air extractor that activates when CO2 levels exceed a certain threshold.

If the sensor is connected to the internet through WiFi, the time will also be monitored.

Commissioning

The sensor operates using a 5-volt adapter. Once the power is connected, the sensor will commence operation. If you prefer not to connect the sensor to a WiFi network, no further action is required. The CO2 status LED will activate after a few seconds, illuminating green, orange, or red based on the CO2 level. If the sensor has not previously been connected to a WiFi network, the separate blue WiFi LED will blink. While this LED is flashing, you can connect directly to the sensor via WiFi to specify the network to which the sensor should connect. This procedure is detailed in a subsequent chapter.

Dimming and turning off LEDs

Both the RGB and WiFi LEDs can be deactivated by briefly pressing the “A” button once. By holding the “A” button, the LEDs will initially brighten before resetting to the lowest setting.

Stabilization

The integrated Sensirion SCD40 requires several minutes to stabilize following each power interruption or reset. Initial readings may vary significantly.

Placement

It is advisable to position the sensor on the wall with the USB connection oriented downwards. This configuration enables the heat produced by the electronics to rise, thereby minimizing the impact of this heat on the temperature measurement.

The sensor comprises precision measuring instruments that are sensitive to shock, dust, and moisture. To prevent damage to the device, avoid impacts and drops. For accurate measurement data, position the sensor indoors in a draft-free area away from direct sunlight.

Chapter 2 Establishing a WiFi Connection

To establish the connection, you must supply the sensor with the name and password of your WiFi network. The sensor features a WiFi access point to which you must first connect directly. This can be accomplished using a smartphone, tablet, or laptop, for instance. Please follow the four steps outlined below to configure the WiFi connection.

STEP 1 (Power the device off and then on)

Upon powering on the device, if a WiFi connection has not been previously established or if the previously configured WiFi network is unavailable, the blue WiFi status LED will begin to flash. If you do not wish to connect to a WiFi network, no further action is required. After two minutes, the WiFi LED will turn off. Should you desire to connect to a different WiFi network than the one previously set, you may initiate a factory reset. This can be accomplished by pressing and holding the “A” button while simultaneously pressing the reset button. After the reset, continue to hold the “A” button until the WiFi LED starts to flash. Please be aware that a factory reset will result in the loss of all other settings.

STEP 2 (Establish a direct connection to the sensor)

While the blue LED is flashing (2 minutes), you can connect directly to the sensor. Choose the MoreSense_MS05 WiFi network on your smartphone, tablet, or PC (refer to fig. 1). It may take some time (10-30 seconds) for the MoreSense-MS05 network to appear on your device. Please note that some devices have the tendency to switch back to a WiFi network with an internet connection (The MS-05 cannot connect to the internet in access-point mode). Switching off the “connect automatically” option to a previously configured WiFi network may help to keep your device connected to the MS-05 access point.

Common issues with connecting the MS-05

Connection Fails

If the connection does not succeed immediately, try again. Often, the connection will succeed if you try a few times. Make sure that the distance between your smartphone, tablet, or PC and the MS-05 is not too large (maximum 5 meters). Don’t forget to restart the sensor in between (temporarily turn off the power), so you have another 2 minutes to connect.

Smartphone / Tablet / PC Switches Back to WiFi Network with Internet

Once you have established a direct connection with the MS-05, it may happen that your smartphone, tablet, or PC automatically switches back to a prior WiFi network with internet without notifying you. It will seem like you are connected to the MS-05 WiFi manager, but the page does not respond. In this case, disable the automatic connection on your device and reconnect to the MS-05. You can also use another device to connect to the sensor.

Routers with Identical Network Name for Both 2.4 and 5 GHz

If your router has the same WiFi network name (SSID) for both 2.4 and 5 GHz, the sensor may fail to connect. The MS-05 only works on 2.4 GHz. In this case, temporarily disable the 5 GHz option on your router. Once the sensor is connected, you can re-enable the 5 GHz option on your router. After restarting the sensor, the connection should now work.

Once connected to the MoreSense MS-05 WiFi access point, you may have the option to log in directly to the MoreSense sensor (refer to image 2). However, this is not always guaranteed. If the direct login option is available, you will be redirected to the WiFimanager page. If the direct login option is not presented, open a browser and enter the following text in the address bar:
http://192.168.4.1. Please note: this is not the IP address you will use later to connect to the built-in web server.

CO2 Sensor

Determine Hostname

By initially selecting the Info option, you can locate the hostname. This hostname allows you to access the built-in web server once the sensor is connected to your WiFi network. Remember to append .local to the URL. For example: http://ms-1c34.local/

STEP 3 (choose WiFi network and input password)

In the WiFi manager, select the “Configure WiFi” option (refer to fig. 3) and then choose your WiFi network from the list. Enter the password for your WiFi network and click “Save” (fig. 4). Please note: it is advisable to avoid selecting a “guest network,” as there are often restrictions on the use of web servers, which may prevent access to the sensor later. For dual-band routers that automatically select between 2.4 and 5GHz, it may be necessary to temporarily disable the 5GHz option. After booting, the blue LED should remain continuously lit. Remember to reconnect your smartphone, tablet, or laptop to your WiFi network.

CO2 Sensor

STEP 4 (establish a connection to the web server)

The integrated web server allows you to view measurement data, modify settings, and update the firmware. The MoreSense sensor features mDNS functionality. Your router converts IP addresses into a web address, so knowing the IP address is not strictly necessary. The MoreSense web address is composed of the characters “http://ms-“, followed by the last four characters of the WiFi MAC address (for instance, “F6BC”), and concludes with the extension “.local”. Consequently, the complete web address would be “http://ms-F6BC.local“. You can obtain the specific address information for your sensor using the INFO option (HOST) when selecting your WiFi network. If desired, you may later change the device name, which will also be reflected in the web address (for example, http://huiskamer.local).

By entering the web address in the browser’s address bar, you will be directed to the home page of the MoreSense web server (see fig. 5). Ensure that your PC, laptop, smartphone, or tablet is connected to the same network as the MoreSense sensor.

In addition to a name, you may also designate the IP address in the browser (e.g. 192.168.0.34). This IP address can be located by referring to your router. Please consult the manufacturer’s instructions for guidance.

The blue WiFi LED indicates the status of the WiFi connection. The statuses are as follows

CO2 Sensor

Measured values

CO2
The Moresense MS-05 features a Sensirion SCD40 self-calibrating CO2 sensor, developed in Switzerland. Sensirion is renowned for its precise and dependable sensors, which also boast an extended service life. The measured CO2 concentration is represented in “Parts Per Million” (PPM). The SCD40 can measure levels up to 2000 ppm and is expected to last over 10 years. In outdoor air, there are approximately 400 CO2 particles per million air particles (0.04 vol.-%). The composition of air primarily consists of nitrogen (78 vol.-%) and oxygen (21 vol.-%).

Automatic calibration

The sensor will automatically calibrate itself (unless configured otherwise) once a week. It must have been continuously operational for a minimum of one week. The automatic calibration relies on the lowest measured value during that week. This feature can be disabled in the browser through the setup screen if the CO2 value does not reach +/- 400 ppm.

Manual calibration utilizing the “A” button

The sensor can also be calibrated manually based on external air conditions. To achieve this, the sensor should be positioned in an environment where the CO2 concentration is approximately 420 ppm (such as outdoors or in a shed). It is crucial to ensure minimal airflow and to avoid direct sunlight exposure on the sensor. By pressing the “A” button three times in quick succession, the calibration process will commence. The CO2 LED will then begin to flash blue. To complete the calibration, you must press the “A” button once more while it is flashing. During the calibration, the button will flash more rapidly and emit a magenta hue. If the button is not pressed again, the procedure will automatically terminate after a certain period.

Temperature

The temperature is presented in degrees Celsius or Fahrenheit. Minor discrepancies may arise between sensors, even when they are of the same brand and model. Consequently, and due to the MS-05’s own heat generation, the temperature must always be calibrated. This adjustment can be configured in the browser. By default, this calibration is set to approximately minus 3 degrees Celsius, which is accurate in most instances. If the temperature reading is inaccurate, you can modify the correction value in the setup menu.

Relative humidity

Relative humidity measures the amount of moisture present in the air. At 100% humidity, the air cannot accommodate any additional moisture. Humidity is intrinsically linked to temperature; as temperature increases, the air’s capacity to hold moisture also rises. The optimal indoor humidity level ranges from 40% to 60%. Both excessively humid and excessively dry conditions can be uncomfortable at specific temperatures and may contribute to health issues.

Date and Time

If the sensor is connected to a WiFi network with internet access, the date and time will be transmitted through MQTT messages. The date and time are sourced from a Network Time Protocol (NTP) server (pool.ntp.org). The internal clock of the MoreSense sensor is compared to that of the NTP server every hour and synchronized as needed. The time is automatically adjusted for daylight saving time, ensuring consistency throughout the year.

MoreSense Web Server

Homepage

Through the integrated web server, you can access measurement data, modify settings, or execute a firmware update. Naturally, the sensor must be connected to your WiFi network. Refer to the instructions in Chapter 2. The process for locating the web address or IP address is detailed in Chapter 2, Step 4.

On the home page, the sensor values are displayed prominently. Beneath these values is the menu, which allows you to configure the sensor or execute a firmware update. The bottom bar indicates the firmware version, IP address, and WiFi signal strength. This page refreshes automatically every 30 seconds. As the sensor is read every 5 seconds, the displayed values may vary slightly from those transmitted to your home automation system.

CO2 Sensor

Setup page

On this page (see Fig. 9), various sensor settings can be adjusted. All available options are detailed in the subsequent pages. After making changes, ensure to save them by clicking the “Save & Reboot” button. The modifications will only take effect once the sensor has been restarted.

CO2 Sensor

Unique device name

The “Unique device name” specifies the designation of the device. By default, it is configured as “MS-” followed by the last four characters of the MAC address. You have the option to assign a name of your choice (for instance, “Kitchen”) to the sensor, provided it does not exceed 40 characters. Only ASCII characters are permitted for this name, and characters that are not valid in a URL should be avoided. Spaces are also prohibited. This name will determine both the URL address and the sensor’s designation in Homey. If you modify this name and have a connection with a Homey home automation controller, you must also update this name in Homey.

Time zone
Here you can select your timezone. The internal clock will automatically adjust to daylight saving time and standard time.

Date format
In this drop-down menu, you can select the date format.

Temperature scale
Select either °Celsius or °Fahrenheit.

MQTT configurations

Connect to MQTT server
By “sliding” this button to the right, the MQTT client will be activated. Naturally, the other MQTT data must also be completed for this to function.

MQTT broker
Here, you can specify the web address (e.g., test.mosquitto.org) or the IP address (e.g., 192.168.0.100) of the MQTT server, commonly referred to as the “MQTT broker.” Avoid using a prefix such as “MQTT://.” Please refrain from entering the port number at this stage, as it will be required in the subsequent field. For local servers don’t use the “.local” extension. Use the IP address instead.

Port
Enter the MQTT server’s port number here. Typically, this is 1883. Currently, a secure connection cannot be established using port number 8883. Since most sensors operate within a private network (such as your home WiFi), this does not present any risks.

MQTT Client
This is the designation by which the sensor is recognized by the MQTT server. It is not the username required for login and serves to differentiate among the various MQTT clients.

MQTT Username / Password
These are the username and password required for logging into the server. Their specification is not always necessary, as it depends on the settings of the MQTT server.

MQTT Publishing Topic
The publishing topic specifies the topic to which the measurement data is transmitted. This can be likened to a directory on your computer. Frequently, it is adequate to specify only the final segment of the topic. The data is transmitted in a format known as “JSON,” which appears as follows:

CO2 Sensor

MQTT Subscription Topic
The subscription topic pertains to the subject through which the sensor can receive messages. Consequently, commands can be issued to the sensor, such as turning off the LEDs. This functionality is not yet available at the time of this manual’s publication.

MQTT publication interval in seconds
Here, you can specify the interval, in seconds, for sending measurement data to the MQTT server. To minimize overhead, it is recommended to maintain an interval of no less than 10 seconds.

Evaluating the MQTT client

If you do not have an MQTT server installed, you may utilize a test server available on the internet. Numerous options exist, including test.mosquitto.org. However, exercise caution: all data transmitted is, in principle, public.

A valuable tool for monitoring MQTT messages is the complimentary application MQTT Explorer (https://mqtt-explorer.com/). This software is compatible with multiple platforms, including Linux and Windows.

CO2 Sensor

Integrating Home Automation Systems

Pairing with Home Assistant and/or Domoticz necessitates the utilization of an MQTT server. Typically, the server software can be installed on the same system as the home automation platform. Both Home Assistant and Domoticz operate using the “Auto discovery” method. The sensor transmits the sensor data (excluding the measurements) to the autodiscovery
path/topic, which is accessed by the home automation controller. Consequently, Home Assistant or Domoticz identifies which sensors to incorporate (such as CO2, temperature, and humidity in this instance) and the topic where the actual measurement data is located.

Connect to Home Assistant / Domoticz
Sliding the button to the right will prompt the sensor to transmit the sensor data to the autodiscovery topic of the MQTT server.

Domoticz
Pairing the sensor with a Domoticz system is a straightforward process, facilitated by the “Autodiscovery” feature. To initiate this, navigate to the Domoticz web page, select “Setup,” and then choose “Hardware.”

Select the MQTT Auto Discovery Client with LAN Interface under the Type category. Additionally, complete the fields for Name, Remote Address (which refers to the IP address or URL of the MQTT server), Port (default is 1883), and, if applicable, Username and Password. The Auto Discovery Prefix field is set to homeassistant by default. This “topic” must correspond with the Auto Discovery path established on the sensor. By default, this is also set to homeassistant, so if you have not modified it, there is no need to adjust this field. Once the MQTT Auto Discovery Client with LAN interface is added, Domoticz will automatically incorporate the sensors (CO2, temperature, and humidity). Typically, this process should occur within approximately one minute.

CO2 Sensor

Establish a connection to Home Assistant using MQTT.

To connect to Home Assistant via MQTT, the sensor must be linked to an MQTT server (this can also be accomplished through REST without an MQTT server, as detailed later in this manual). Slide the button labeled “Connect to Home Assistant / Domoticz” to the right.

Automatic discovery pathway

The sensor will transmit an “Auto Discovery” message to the topic homeassistant/sensor/config for each sensor value upon startup. For Home Assistant, it is sufficient to specify the beginning of the path/topic, which by default is simply homeassistant. The actual sensor values are dispatched to the topic indicated in the “MQTT Publishing topic” field.
In Home Assistant, navigate to “Settings -> Devices & Services” and click on the link “n Devices” within the “MQTT” section to integrate the sensor into HA. If the sensor is not displayed, verify the MQTT server (for instance, using “MQTT Explorer”) to ensure that messages are being transmitted. Occasionally, a restart of HA may also be required.

Connection to Home Assistant through “REST”

You can also connect to Home Assistant using REST. In this instance, it is necessary to modify the configuration.yaml file of Home Assistant. To accomplish this, add the text provided on the following page. Replace MS-XXXX.local with the unique device name followed by the .local extension or the sensor’s IP address.

Following the adjustment and a restart of Home Assistant, the sensor should appear in the Home Assistant overview.

CO2 Sensor

Connect to Homey.

Slide the button to the right to establish a connection with the Homey controller. Following a restart, the sensor will become detectable by Homey. To facilitate this, the Homeyduino application must be installed on the Homey controller, after which the sensor can be added. With Homey, numerous possibilities arise, including the control of a ventilation system or the transmission of notifications to your phone (push messages) when specific thresholds are exceeded. Additionally, Homey retains the data, allowing for later visualization in clear graphs. When modifying the Unique Device Name, it is essential to also update the name of the Homey sensor.

Smart plug control

The MoreSense MS-05 possesses the capability to regulate Smart Plugs according to CO2 levels. These devices are inserted into wall sockets, allowing for the connection of various plugs. The smart plugs must support control via WiFi using HTTP GET commands. For instance, it is feasible to manage an extraction system that activates solely when CO2 levels exceed acceptable thresholds. This functionality can help prevent the unnecessary expulsion of costly heated air during colder months.

CO2 ventilation threshold in PPM

This represents the threshold value of the CO2 level at which the “on” command is activated. If you prefer not to utilize this functionality, you may leave the value at “0.” The “off” command is triggered when the threshold value decreases by 100 PPM. This reduction of 100 PPM helps to prevent the switch from toggling too frequently, thereby minimizing unnecessary wear.

URL for CO2 Ventilation Activation Command

Enter the URL here to activate the device. This varies for each device. For a device operating on Tasmota, the command is http://ip-address/cm?cmnd=Power%20On.
URL for CO2 ventilation deactivation command

Same as above, but to deactivate the device.

Sensor page

On this page, you can adjust various settings of the sensor. Always ensure to save the changes by clicking the “Save & Reboot” button. The modifications, with the exception of forced calibration, will only take effect upon rebooting the sensor.

CO2 Sensor

Automatic self-calibration

The Sensirion SCD40 features automatic calibration, which is enabled by default. The sensor presumes exposure to fresh air with a CO2 concentration of 400 PPM at least once a week. If the lowest recorded value deviates from 400 PPM, the sensor will self-correct, adjusting the lowest measured value to 400 PPM. Regular adjustments are essential, as the infrared light emitted by the integrated IR LED may diminish over time, leading to inaccurate readings. It is advisable to keep the “automatic self-calibration” feature activated. However, in scenarios where the CO2 concentration is unlikely to reach 400 PPM, such as in a greenhouse, this option may be disabled. In such cases, manual calibration should be performed approximately once a month.

CO2 forced calibration value

The sensor can also be calibrated based on a reference value, for example, from another sensor known to have (relatively) reliable values. Enter the value and click “Calibrate” to do this. Keep in mind that the sensor needs to be in a stable environment for some time. Avoid strong airflows and direct sunlight. After moving the sensor, give it at least 3 minutes to stabilize. Although the SCD40 is considered a reliable sensor, values can always vary slightly compared to other CO2 sensors. For forced calibration, it is not necessary to save the changes or restart.

Temperature offset in degrees Celsius

Because both the sensor itself and the other electronics generate heat, the sensor must always be corrected with a negative value. Normally, a correction of around 3 degrees is sufficient. However, do not enter a negative sign in this field. The sensor only accepts positive correction values, which are then subtracted from the measured values.

Altitude in meters

The CO2 value in the air decreases as altitude increases. This is about 3%per 300 meters. In this field, the altitude of the sensor in meters can be specified so that the CO2 measurements can be adjusted accordingly.

Firmware Update

On this page, you can perform a firmware update. Firmware updates for the MoreSense sensors are regularly released with bug fixes and additional functionality. If you are subscribed to the MoreSense newsletter, you will be notified of new updates. You can also check moresense-nl.com and download updates from there.

Firmware updates consist of binary files. The name of firmware files looks like this: MS05_Vn.n.n.bin, where n.n.n represents the version, for example, 1.0.0.

CO2 Sensor

Use of the Buttons

The table below provides an overview of the use of the buttons.

CO2 Sensor

Specifications:

  • Firmware Version: 2.0.0
  • Measurement Values: CO2, Temperature, Relative Humidity, Date, Time
  • Integration: WiFi Connection, Web Server Homepage, MQTT Client
  • Home Automation Integration: Domoticz, Home Assistant, Homey
  • Smart Plug Control: Yes
  • Sensor Stabilization Time: Several minutes after power interruption
  • Placement: Indoor, USB connection oriented downwards

FAQ:

Common Issues with Connecting the MS-05:

If you encounter issues with connecting to the MoreSense MS-05 WiFi access point, try the following:

  • If direct login is available, follow the on-screen instructions.
  • If direct login is not available, open a browser and enter
    http://192.168.4.1 in the address bar.
  • Note: This IP address is not for connecting to the web server later.

Documents / Resources

MoreSense MS-05 CO2 Sensor [pdf] User Manual
HA, Domoticz, Homey, MS-05 CO2 Sensor, MS-05, CO2 Sensor, Sensor

References

Leave a comment

Your email address will not be published. Required fields are marked *