The invention relates to a method for improving the heat stability of glucose dehydrogenase (GDH). The invention provides a method for preparing a glucose sensor with soluble flavin-bound GDH by providing a composition comprising soluble flavin-bound GDH at an acidic pH and heat drying the composition onto a glucose sensor.