HelgeG
Automate Your Home Using Go: (page 58) temperature values fluctuating between negative and positive values
I have created the example temperature polling application on a Raspberry Pico W and it is working, however, the reported temperature switches between positive and negative values like this:
```
❯ curl http://192.168.1.241
{“tempC”:31.351,“tempF”:88.4318}%
❯ curl http://192.168.1.241
{“tempC”:-31.845,“tempF”:-25.321000000000005}%
```
At first I thought maybe this was because of a flaky sensor, but I get the same behaviour when I flash the application to another Raspberry Pico.
Any idea why this would happen?
First Post!
HelgeG
From what I read the onboard sensor on the Pico is not very reliable, so I added an external sensor (DHT11) to the Pico and changed the source code to use that one instead of the onboard sensor. Now things are much better (and I have a humidity reading as well as the temperature).
Popular Pragmatic Bookshelf topics
Other popular topics
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /python
- /js
- /rails
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /kotlin
- /c-plus-plus
- /crystal
- /tailwind
- /react
- /gleam
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /html
- /opensuse
- /zig
- /centos
- /deepseek
- /php
- /scala
- /react-native
- /textmate
- /lisp
- /sublime-text
- /debian
- /nixos
- /agda
- /django
- /kubuntu
- /arch-linux
- /deno
- /nodejs
- /revery
- /ubuntu
- /spring
- /manjaro
- /lua
- /diversity
- /markdown
- /julia
- /slackware








