Convert a Battery-powered Sensor to Mains?

Of this one: