Titaniumdioxide chemical sensor working with AC voltage