Production of sensors in E. coli and protein purification