Temp Hum Press Sensorr not reading.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 494
- Forks
- 472
- PR merge metrics
- No merged PRs in 30d
Description
I have the following sensor (https://www.dexterindustries.com/shop/temperature-humidity-pressure-sensor/) and I have been using the following code (https://github.com/DexterInd/GrovePi/blob/master/Software/CSharp/GrovePi/Sensors/DHTTemperatureAndHumiditySensor%20.cs) to read in from digital port 4.
I use the following code:
IDHTTemperatureAndHumiditySensor sensor = DeviceFactory.Build.DHTTemperatureAndHumiditySensor(Pin.DigitalPin4, DHTModel.Dht22);;
sensor.Measure();
double sensorTempC = sensor.TemperatureInCelsius;
double sensorTempF = sensor.TemperatureInFahrenheit;
double sensorhum = sensor.Humidity;
Is that the right code to use? I am getting NaN for all the values even if I use other ports.
I am trying to implement this for a client and at a stopping point.
Thanks in advance!!
Sean
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked Software/CSharp/GrovePi/Sensors/DHTTemperatureAndHumiditySensor.cs implementation and the DHT22 usage shown in the issue. Check how DigitalPin4 and other ports are handled, then reproduce the NaN readings; done means determining whether the implementation supports this sensor and documenting or correcting the cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100