You may get an answer here, but you would have a much greater chance in the ESP32 or Arduino-type forum, as Kali is not very relevant here and the way it would work is pretty much the same across all Linux version.