This is a Tuya photoelectric smoke sensor with a alarm. It has a [TYWE3S](https://tasmota.github.io/docs/Pinouts/#tywe3s) module, a N76E003AQ20 Nuvoton 1T 8051-based Microcontroller and BL5980 Low Voltage Photoelectric Smoke Detector ASIC with Interconnect and Timer Mode. PCB is marked with YG400A hence the model number but it can be found under various brands such as Earykong, Avatto or whitelabel.
Identified with MCU Product ID: `{"p":"4w4a6noxfgk0yktc","v":"1.0.0"}`.

There is a newer versions with a [CB3S](https://developer.tuya.com/en/docs/iot/cb3s?id=Kai94mec0s076) module that can't be flashed with Tasmota. It might be possible to replace it with a [ESP-12 S/E/F](https://templates.blakadder.com/ESP-12.html). The model number on the PCB