Another instructor and I were setting up for a scuba demo day at a local lake. We set up a diving platform with lines running from it in anticipation of people coming and joining us for activities. It took a while. It was getting near time for things to get started, and we were nearly done. We were both nearly OOA, and I sent him in so he could help get the shore activities started. There was only one minor thing to do on the platform (15 feet deep), and I went down to do it while he headed for shore on the surface. I did the job and headed back toward the surface. I stopped suddenly less than two feet from the surface. My tank valve has somehow become entangled in a line while I was on the platform, and the line was stopping me from reaching the surface. I made a couple unsuccessful attempts to get free, and then look a look at my SPG. It read dead empty. I took my gear off, got to the surface, fixed the entanglement, put the gear back on, and headed in with an empty tank. That is the closest I have ever come to becoming a scuba statistic, and it happened two feet from the surface.You can easily die in shallow water if you have an entanglement hazard combined with out of gas.