The power supply needs to be a regulated 5 volt power supply. Many of the phone chargers are not regulated. Also, it needs to provide an adequate amount of current to support the Yun as well as the sensor.
etrust:
Hi, yes its an external power supply. Its my Iphone power supply. Is that a problem for arduino?
Iphone chargers are crap, specially if it's an after-market one, not original.
Get a real 5V one, with at least 1A (better 2A) and verify that you really get 5V.
An iPad charger is better, as it has a higher amperage and those are commonly more stable with the provided voltage than those iPhone chargers.