On heating NaHCO3 (baking soda), CO2 (carbon dioxide) gas is given out that turns lime water milky.
2NaHCO3Heat→Na2CO3+H2O+CO2
While on heating Na2CO3.10H2O (washing soda) water of crystallisation is given out and the salt becomes anhydrous. The presence of water of crystallisation given as product can be tested by treating it with anhydrous CuSO4 (white) which becomes blue in colour in its contact.
Na2CO3.10H2OHeat→Na2CO3+10H2O