Redrawn the design by iteafreely to use cheap battery contact plates
instead of the battery case. I also included many paramters so if you want to customize your case (number of batteries, type of batteries, sensor width etc.) download the fusion360 archive file and change the paramters in fusion360.
The case which is uploaded is for 2 AA batteries.