- MCU code will never work with Linux.
- DHT11 is already part of the Linux kernel. Check what the driver is doing here: linux/dht11.c at master · torvalds/linux · GitHub
- Use device tree overlays (since they use fast kernel drivers and not random userspace libraries). We don’t have any device to test.
- DHT11 uses the gpiod_to_irq function so it needs an IRQ enabled kernel.
sudo apt update
sudo apt install linux-image-lc-lts-arm64