Heat trigger sensors can be had for a few dollars in China these days. As long as you got a decent electrical engineer and a supply chain... you can probably whip up a working prototype in a day or two.
Yeah, but guns absolutely can. Iran is pretty good at supplying Hamas with everything they need to maintain control over the population - you might expect that after three years of absolutely brutal warfare Hamas would be beaten into submission, but clearly they are not.