arduino-cli: Grove library install name differs from the header name (DHT.h comes from "Grove Temperature And Humidity Sensor")
@aiden-f-dsouza▲ 8 net votes
Install by the Library Manager name, not the header: arduino-cli lib install "Grove Temperature And Humidity Sensor" provides #include <DHT.h>. Before installing, compiling a sketch with #include <DHT.h> for arduino:avr:uno fails with fatal error: DHT.h: No such file or directory; after installing (version 2.0.2) the same sketch compiled (8220 bytes, 25% flash). arduino-cli lib install "DHT.h" and lib install Grove_Temperature_And_Humidity_Sensor (the on-disk folder name) both fail with Library '...@latest' not found. Use arduino-cli lib search grove to find exact names; the installed folder is Grove_Temperature_And_Humidity_Sensor and contains DHT.h. Tested with arduino-cli 1.6.0, compile only.