{"id":19738422,"url":"https://github.com/sensirion/raspberry-pi-uart-sfa3x","last_synced_at":"2026-05-13T11:32:03.986Z","repository":{"id":149346073,"uuid":"348315201","full_name":"Sensirion/raspberry-pi-uart-sfa3x","owner":"Sensirion","description":"RaspberryPi driver for Sensirion SFA3x sensor module","archived":false,"fork":false,"pushed_at":"2024-05-23T18:21:39.000Z","size":595,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T05:57:53.760Z","etag":null,"topics":["driver","gas-sensor","raspberry-pi","sensirion","sfa30","sfa3x","uart"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sensirion.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-16T11:06:01.000Z","updated_at":"2024-05-23T18:21:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3045e4f-3b2c-45da-aa0f-130492948089","html_url":"https://github.com/Sensirion/raspberry-pi-uart-sfa3x","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Sensirion/raspberry-pi-uart-sfa3x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sensirion%2Fraspberry-pi-uart-sfa3x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sensirion%2Fraspberry-pi-uart-sfa3x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sensirion%2Fraspberry-pi-uart-sfa3x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sensirion%2Fraspberry-pi-uart-sfa3x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sensirion","download_url":"https://codeload.github.com/Sensirion/raspberry-pi-uart-sfa3x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sensirion%2Fraspberry-pi-uart-sfa3x/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32980675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["driver","gas-sensor","raspberry-pi","sensirion","sfa30","sfa3x","uart"],"created_at":"2024-11-12T01:14:09.217Z","updated_at":"2026-05-13T11:32:03.965Z","avatar_url":"https://github.com/Sensirion.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sensirion Raspberry Pi UART SFA3x Driver\n\nThis document explains how to set up the [SEK-SFA3x](https://www.sensirion.com/my-sfa-ek/) evaluation kit to run on a\nRaspberry Pi using the provided code.\n\n[\u003ccenter\u003e\u003cimg src=\"images/SFA3x.png\" width=\"500px\"\u003e\u003c/center\u003e](https://www.sensirion.com/my-sfa-ek/)\n\n## Setup Guide\n\n### Connecting the Sensor\n\nPlug the provided USB cable into your Raspberry Pi.\n\nIf you don't have a suitable cable at hand, please find the SEK-SFA3x pinout listed below, or in\nthe [datasheet](https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/14_Formaldehyde_Sensors/Datasheets/Sensirion_Formaldehyde_Sensors_SFA30_Datasheet.pdf):\n\n| *Pin* | *Name* | *Description* | *Comments* |\n|-------|--------|---------------|------------|\n| 1     | VDD    | Supply Voltage | 5V ±10%\n| 2     | GND    | Ground |\n| 3     | RX     | UART: Receiving pin for communication |\n|       | SDA    | I2C: Serial data input / output |\n| 4     | TX     | UART: Transmission pin for communication |\n|       | SCL    | I2C: Serial clock input |\n| 5     | SEL    | Interface select | Leave floating or pull to VDD to select UART\n|       |        |  | Pull to GND to select I2C\n| 6     | NC     | Do not connect |\n| 7     | NC     | Do not connect |\n\n### Raspberry Pi\n\n- [Install the Raspberry Pi OS on to your Raspberry Pi](https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up)\n- Download the driver from the [Sensirion GitHub Page](https://github.com/Sensirion/raspberry-pi-uart-sfa3x/tags)\n  and extract the `.zip` on your Raspberry Pi\n- Compile the driver\n    1. Open a [terminal](https://www.raspberrypi.org/documentation/usage/terminal/)\n    2. Navigate to the driver directory. E.g. `cd ~/raspberry-pi-uart-sfa3x`\n    3. Run the `make` command to compile the driver\n\n       Output:\n       ```\n       rm -f sfa3x_uart_example_usage\n       cc -Os -Wall -fstrict-aliasing -Wstrict-aliasing=1 -Wsign-conversion -fPIC -I. -o sfa3x_uart_example_usage sfa3x_uart.h sfa3x_uart.c sensirion_uart_hal.h sensirion_shdlc.h sensirion_shdlc.c \\\n        sensirion_uart_hal.c sensirion_config.h sensirion_common.h sensirion_common.c sfa3x_uart_example_usage.c\n       ```\n\n- Test your connected sensor\n    - Run `./sfa3x_uart_example_usage` in the same directory you used to compile the driver.\n\n      Output:\n      ```\n      Device marking: 494108010320N020234S\n      Formaldehyde concentration: 0.0 ppb\n      Relative humidity: 35.35 %RH\n      Temperature: 25.28 °C\n      Formaldehyde concentration: 0.0 ppb\n      Relative humidity: 35.34 %RH\n      Temperature: 25.26 °C\n      Formaldehyde concentration: 0.0 ppb\n      Relative humidity: 35.36 %RH\n      Temperature: 25.28 °C\n      Formaldehyde concentration: 0.0 ppb\n      Relative humidity: 35.34 %RH\n      Temperature: 25.28 °C\n      ...\n      ```\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensirion%2Fraspberry-pi-uart-sfa3x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensirion%2Fraspberry-pi-uart-sfa3x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensirion%2Fraspberry-pi-uart-sfa3x/lists"}