The maximum penalty for a possession of drug paraphernalia charge, if issued as a criminal offense, is $500 fine and 30 days in jail.
You should really speak with an experienced attorney. If you have a court date, you apparently are being charged with something. Your best bet is to consult an attorney immediately. The worst case scenario as you inquire is dependent upon the charge(s).
Any answer is to be used as informational purposes only. No attorney/client relationship has been created. You should seek the advise of an attorney confidentially to further address your legal question and specific situation.
Was this in Brown County? If so, your worst case scenario is nowhere near the maximums. Honestly, I believe there might be some things to challenge, as you've laid them out. You should have an attorney to determine whether the facts support a challenge and to advise you of the process and the court that you will be before.