How can read automaticaly sms on ionic capacitor app

Good evening I am a beginner in ionic angular and I need help to read sms with ionic 6 angular using capacitor for native features.

Thanks in advance.

Can you please share more information on your use-case? What is the purpose of the app/feature you are trying to build?

I would like to understand your problem better so that we can offer the best possible solutions for you.

On the application must read a sms that comes from our gas leak detection device to extract the concentration of gas that is sent in this sms.