Aqara motion sensor no longer working

Using the ZHA integration or Zigbee2MQTT + with which Zigbee Coordinator and firmware?

There are no recent breaking change in HA related to the ZHA integration that I am aware of so make sure you using the latest recommended firmware on Zigbee Coordinator and that you read and follow all these tips to optimize your setup → Zigbee networks: how to guide for avoiding interference and optimize for getting better range + coverage

FYI, all Zigbee radios and are very susceptible to interference from strong or close sources of EMF (electromagnetic fields) + have relatively poor range and building material penetration (i.e. bad non-line-of-sight propagation), so you should follow the advice in that guide and take some basic actions to avoid EMF interference by connecting the Zigbee Coordinator USB adapter via a long USB extension cable (preferably one with good shielding) as well as connecting it to a USB 2.0 port or a USB 2.0 hub (and not a USB 3.0 port/hub). The best practice is therefore to make sure that you start by adding many mains-powered Zigbee Router devices (to extend the range and coverage of your Zigbee network mesh) before adding any Zigbee End Devices (i.e. non-routers like for example battery-operated Zigbee devices) → https://www.home-assistant.io/integrations/zha#best-practices-to-avoid-pairingconnection-difficulties