Section 95. If a disease dangerous to the public health breaks out in a town, or if a person is infected or lately has been infected therewith, the board of health shall immediately provide such hospital or place of reception and such nurses and other assistance and necessaries as is judged best for his accommodation and for the safety of the inhabitants, and the same shall be subject to the regulations of the board. The board may cause any sick or infected person to be removed to such hospital or place, if it can be done without danger to his health; otherwise the house or place in which he remains shall be considered as a hospital, and all persons residing in or in any way connected therewith shall be subject to the regulations of the board, and, if necessary, persons in the neighborhood may be removed. When the board of health of a town shall deem it necessary, in the interest of the public health, to require a resident wage earner to remain within such house or place or otherwise to interfere with the following of his employment, he shall receive from such town during the period of his restraint compensation to the extent of three fourths of his regular wages; provided, that the amount so received shall not exceed two dollars for each working day.