hi, i try to make a notification system for a sensor which connected to my pc. the reading of the sensor will be send to sql database on web. the reading of the sensor will have reading limit. when the reading is exceed the limit, i need to sent a notification to the phone. i dont have any problem at the pc side. but i have few doubt:
1. how can check the sensor value in sql database?
2. what is the efficient way to check sensor reading instead of check the value inside the database?
3. is it possible to send data directly from pc to the phone which have the app?
4. how can my app running in background even the screen is lock? i have already try service module, but it stop working when screen is lock.