How to read sensors in a home screen widget?

I have been trying for days to read sensor data from a home screen widget (cupcake 1.5).

The first thing OpenIntents has you do in an app is run "Hardware.mContentResolver = getContentResolver();". This only seems to work in apps that extend Activity, which widgets dont. Widgets extend AppWidgetProvider.

Any info anyone has on reading sensor data from within a widget will be appretiated.