Send fake sensor value to an Android real device Is possible to simulate an event on a Android real device? 

More precisely, I want to test an application which does something if a particular temperature value is detected. Is there an adb command, or somethings else, to send a fake sensor value to the device in order to check the application behaviour?

Thanks.
Specifically what sensor ? 
If you are simulating a screen press, then yes.  

If you are simulating a temperature for your CPU, probably not.  

It depends on the level of safety In my opinion, if your just mocking GPS locations, not a big problem... However if your trying to mock temperature readings or something that might cause hardware failure's... it may not be possible.