Photoresponse of a titanium dioxide chemical sensor