A molecular imprinted tetraethoxysilane polymer device for detecting secosteroids, or metabolites thereof, and a method for using the same are provided. The B site variables x, y, and z lie in a predetermined region in a ternary diagram. Upper surfaces of the first gate electrode and the second gate electrode are coplanar. In addition to a tri-phase composition also a bi-phase composition is described. The axial aperture has two flat inner surfaces for cooperating with the two flat sections of the threaded body portion to prevent relative rotation of the washer and threaded body portion. Both the spout and the base grid have pointed ribbed members which minimize the points and area of contact between the pill or tablet and the dispensing device.