Diethyl ether reacts with HI and gives ethyl alcohol {when reaction is carried out in cold) while it gives ethyl iodide (when reaction mixture is heated). $ {{C}_{2}}{{H}_{5}}O{{C}_{2}}{{H}_{5}}\xrightarrow[+\,2HI]{\Delta }\underset{\text{Ethyl}\,\text{iodide}}{\mathop{2{{C}_{2}}{{H}_{5}}I}}\,+{{H}_{2}}O $ $ {{C}_{2}}{{H}_{5}}O{{C}_{2}}{{H}_{5}}\xrightarrow[Cold]{HI}{{C}_{2}}{{H}_{5}}OH+{{C}_{2}}{{H}_{5}}I $