{"id":13802485,"url":"https://github.com/agners/micropython-scd30","last_synced_at":"2025-10-26T21:06:06.654Z","repository":{"id":57441510,"uuid":"196653377","full_name":"agners/micropython-scd30","owner":"agners","description":"MicroPython I2C driver for SCD30 CO2 sensor module","archived":false,"fork":false,"pushed_at":"2023-02-27T07:00:55.000Z","size":7,"stargazers_count":29,"open_issues_count":4,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T07:23:01.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agners.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-07-12T22:32:28.000Z","updated_at":"2025-07-11T09:45:03.000Z","dependencies_parsed_at":"2022-09-06T02:40:29.821Z","dependency_job_id":null,"html_url":"https://github.com/agners/micropython-scd30","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"3cc11c0f310d812ab53598dd50f7944b844bdedc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agners/micropython-scd30","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-scd30","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-scd30/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-scd30/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-scd30/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agners","download_url":"https://codeload.github.com/agners/micropython-scd30/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-scd30/sbom","scorecard":{"id":170782,"data":{"date":"2025-08-11","repo":{"name":"github.com/agners/micropython-scd30","commit":"3cc11c0f310d812ab53598dd50f7944b844bdedc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-16T16:23:40.730Z","repository_id":57441510,"created_at":"2025-08-16T16:23:40.730Z","updated_at":"2025-08-16T16:23:40.730Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281172626,"owners_count":26455660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:45.514Z","updated_at":"2025-10-26T21:06:06.613Z","avatar_url":"https://github.com/agners.png","language":"Python","readme":"# Sensirion SCD30 CO² Sensor I2C driver for MicroPython\n\nSensirion SCD30 is a CO², Humidity and Temperature sensor on a module. This is\na I2C driver written in Python 3 for MicroPython.\n\n## Getting Started\n\n### Prerequisites\n\n* Sensirion SCD30 Sensor Module\n* MicroPython board with I2C interface\n\n### Wiring\n\nWire the I2C bus to the I2C bus on your MicroPython board. This is an example\nusing the Pyboard D:\n\n| Pyboard       | SCD30         |\n| ------------- |---------------|\n| X15 (3V3)     | VDD           |\n| X14 (GND)     | GND           |\n| X9            | TX/SCL        |\n| X10           | RX/SDA        |\n\n### Usage\n\nThis example reads the measurements in a continous loop:\n\n```\nimport time\nfrom machine import I2C, Pin\nfrom scd30 import SCD30\n\ni2cbus = I2C(1)\nscd30 = SCD30(i2c, 0x61)\n\nwhile True:\n    # Wait for sensor data to be ready to read (by default every 2 seconds)\n    while scd30.get_status_ready() != 1:\n        time.sleep_ms(200)\n    scd30.read_measurement()\n```\n\nNote that the CO² sensor needs some time to stabilize. Therefor the sensor\nshould be kept powered to achieve a reasonable measurement interval (e.g. \u003c5\nminutes). To save power the sensors measurement inverval can be tweaked. See\nalso the [Low Power Mode for SCD30](https://docs-emea.rs-online.com/webdocs/16c9/0900766b816c9dc7.pdf)\napplication note.\n\n### Calibration\n\nThe CO² sensor has two modes of calibration: FRC (Forced Recalibration) or ASC\n(Automatic Self-Calibration). This only describes the former.\n\nEssentially the sensor is already calibrated at factory. However, when setting a\nnew measurement interval recalibration might be necessary. The process is to\nbring the sensor into a controlled environment (e.g. outside) and set the known\nvalue at that environment (e.g. 400ppm). From what I understand ASC does\nessentially the same, just assumes that the lowest values over a certain periode\nare \"outside values\"...\n\nAlso note that the temperature sensor suffers from heating effects on the PCB.\nWhen the sensor operates in 2 second interval the heating is about 3°C. I\nusually run the sensor at 30 seconds interval and observed a heating of 2°C. The\noffset is subtracted from the measured temperature! To set a new offset, take\nthe old offset into account!\n\n## Built With\n\n* [MicroPython](http://micropython.org/)\n* [SCD30 Sensor Module](https://www.sensirion.com/en/environmental-sensors/carbon-dioxide-sensors-co2/)\n\n## License\n\nThis project is licensed under the MIT License - see the\n[LICENSE](LICENSE) file for details\n\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagners%2Fmicropython-scd30","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagners%2Fmicropython-scd30","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagners%2Fmicropython-scd30/lists"}