
Sensor simulator is a java standalone application that simulates sensor data and transmits them to the Android emulator. You can try out a web preview version of the Sensor simulator online.
Currently, Sensor simulator sensors supports the following functions:

The connection settings are set in the emulator through the sensor simulator settings. There one can also test the connection and see the data transmitted.
The SensorSimulator throws the same exceptions as a real sensor would. To try this out:
The Sensor Simulator allows a lot of customization. Scroll down the settings pane to see all settings.
Supported sensors:
Choose the supported Sensors, that is those sensors that are reported to be available in the emulator. Do this before you connect the emulator to the Sensor simulator.Enabled sensors:
Sensors have to be enabled by the application. You should not need to touch these check boxes, except for testing purposes.Sensor update rate:
'Update rates' lets you specify a list of possible update rates that is reported to the Android emulator. 'Default rate' is the rate to which a sensor is reset upon unsetting the rate from an application. 'Current rate' is the current update rate as set by the application. 'Average Simulation update:
This sets the internal update rate of the Sensor simulator. 'Update sensors' sets the duration between internal updates. External updates are controlled by the 'Update rates' settings above. 'Refresh after' determines after how many queries by the emulator the update rates given below are calculated and averaged over. If sensors are enabled and read out through the emulator, the actual read-out rates are displayed here. 'Sensor update' shows the actual internal update rate.Accelerometer:
Lets you specify the physical behavior of the accelerometer. 'Gravity constant' is the earth's gravity constant. Accelerometer limit limits the values returned independently for the x-, y-, and z-components. 'Pixels per meter' is used to calculate between screen distance and real word distance in units pixel per meter (p/m). The accelerometer is physically modeled through the deviation of a test mass on a spring. Its spring constant to mass ratio k/m is given in screen units pixel per seconds squared (p/s^2), and its damping constant is given in pixels per second. 'Show acceleration' displays the current acceleration in the simulated device.Gravity:
You can set the standard gravity to a different value in units of g=9.8 m/s^2.Magnetic field:
Set the magnetic field in units of nano Tesla. You can obtain the values for your current location from the National Geophysical Data Center.Temperature:
Set the temperature in centigrade Celsius.Random component:
Set a random component that is added to the data to simulate inaccurate sensors.Real sensor bridge:
This feature will let you connect a real hardware sensor to the Sensor simulator to control applications in the emulator. In the current version it only displays the sensor data on a Thinkpad computer, if the sensor data are written to a special file.
The wii-mote extension by Dale Thatcher lets you connect a wii-mote to the sensor simulator.