Skip to main content

Python I2C Driver for Sensirion SFA4X

This repository contains the Python driver to communicate with a Sensirion SFA40 sensor over I2C.

SFA4X picture

Click here to learn more about the Sensirion SFA40 sensor.

Not all sensors of this driver family support all measurements. In case a measurement is not supported by all sensors, the products that support it are listed in the API description.

The default I²C address of SFA40 is 0x5d.

Connect the sensor

You can connect your sensor over a SEK-SensorBridge. For special setups you find the sensor pinout in the section below.

Sensor pinout

sensor wiring picture

Pin Cable Color Name Description Comments
1 black GND Ground
2 red VDD Supply Voltage 1.62V to 3.6V
3 blue SDA I2C: Serial data input / output
4 yellow SCL I2C: Serial clock input

Documentation & Quickstart

See the documentation page for an API description and a quickstart example.

Contributing

Check coding style

The coding style can be checked with flake8:

pip install -e .[test]  # Install requirements
flake8                  # Run style check

In addition, we check the formatting of files with editorconfig-checker:

pip install editorconfig-checker==2.0.3   # Install requirements
editorconfig-checker                      # Run check

License

See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sensirion_i2c_sfa4x-1.0.0.tar.gz (602.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sensirion_i2c_sfa4x-1.0.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file sensirion_i2c_sfa4x-1.0.0.tar.gz.

File metadata

  • Download URL: sensirion_i2c_sfa4x-1.0.0.tar.gz
  • Upload date:
  • Size: 602.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for sensirion_i2c_sfa4x-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bd848b66a376c7dc053a187999a1277473a7d7250d01a17b0c3497a724206b90
MD5 fdfeefb30b9ab4431a82e9ebad57b3e8
BLAKE2b-256 6d21098b2ae2f6623accd008a9bf362a214b19ef7ea14ab7b67067659ff430b1

See more details on using hashes here.

File details

Details for the file sensirion_i2c_sfa4x-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sensirion_i2c_sfa4x-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94766372070215d5f2249e2185faa77f0ad557ead5374d9895e1c537acbcd33b
MD5 8444db831f2db14e4f786a8934b39ab4
BLAKE2b-256 f54797c5a0ca12c18eb90d6b0c8a995eeaa3fa66097c6fdd794647d89cb5de4f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page