On bookworm, sensors2mqtt needs python3-paho-mqtt 2.x, which bookworm does not ship: add the paho-mqtt-bookworm repository as well, the same way as this one. trixie and sid ship it.