Problem is lack of suitably trained teachers and suitable curriculum. I remember when Apple II, Research Machine 380 and BBC Micro went into schools. The teachers should have got one and training first. There should have been a clear plan.
There is too much emphasis on MS Office and not enough on lab based wider science, simply using Pi or tablet or whatever as a tool for STEM, not an end in itself.
Teachers, labs, and last of all throwing gadgets and IT at it!