Using the Onion Omega 2 and a temperature/humidity sensor from Control Everything, you can use this Python code to trigger measurements and read them back.
trietsch/onion-omega-temp-humidity
Onion Omega 2 + Control Everything SI7020-A20 Temperature / Humidity sensor
Python